• 大小: 0.12M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GetCDateTime
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender EventArgs e)
        {
            label1.Text = DateTime.Now.ToLongDateString() + “ “ + getWeek() + “ “ + DateTime.Now.ToLongTimeString();
        }

        #region  判断星期几
        /// 
        /// 判断星期几
        /// 

        /// 
        public string getWeek()
        {
            string str = DateTime.Now.DayOfWeek.ToString();
            string strWeek = ““;
            switch (str)
            {
                case “Monday“:
                    strWeek = “星期一“;
                    break;
                case “Tuesday“:
           

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         926  2009-02-10 14:28  sj\01\GetCDateTime\GetCDateTime.sln
     文件       24064  2009-02-10 14:32  sj\01\GetCDateTime\GetCDateTime.suo
     文件        1702  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\Form1.cs
     文件        2470  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\Form1.Designer.cs
     文件        6008  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\Form1.resx
     文件        3770  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\GetCDateTime.csproj
     文件         493  2009-02-10 14:28  sj\01\GetCDateTime\GetCDateTime\Program.cs
     文件        9216  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\bin\Debug\GetCDateTime.exe
     文件       19968  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\bin\Debug\GetCDateTime.pdb
     文件       14328  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\bin\Debug\GetCDateTime.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\GetCDateTime\GetCDateTime\bin\Debug\GetCDateTime.vshost.exe.manifest
     文件         815  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\obj\Debug\GetCDateTime.csproj.FileListAbsolute.txt
     文件         847  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\obj\Debug\GetCDateTime.csproj.GenerateResource.Cache
     文件        9216  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\obj\Debug\GetCDateTime.exe
     文件         180  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\obj\Debug\GetCDateTime.Form1.resources
     文件       19968  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\obj\Debug\GetCDateTime.pdb
     文件         180  2009-02-10 14:31  sj\01\GetCDateTime\GetCDateTime\obj\Debug\GetCDateTime.Properties.Resources.resources
     文件        1380  2009-02-10 14:28  sj\01\GetCDateTime\GetCDateTime\Properties\AssemblyInfo.cs
     文件        2874  2009-02-10 14:28  sj\01\GetCDateTime\GetCDateTime\Properties\Resources.Designer.cs
     文件        5612  2009-02-10 14:28  sj\01\GetCDateTime\GetCDateTime\Properties\Resources.resx
     文件        1097  2009-02-10 14:28  sj\01\GetCDateTime\GetCDateTime\Properties\Settings.Designer.cs
     文件         249  2009-02-10 14:28  sj\01\GetCDateTime\GetCDateTime\Properties\Settings.settings
     文件         920  2009-02-10 14:32  sj\02\RDShowForm\RDShowForm.sln
     文件       24064  2009-02-10 14:33  sj\02\RDShowForm\RDShowForm.suo
     文件         753  2009-02-10 14:32  sj\02\RDShowForm\RDShowForm\Form1.cs
     文件        1495  2009-02-10 14:32  sj\02\RDShowForm\RDShowForm\Form1.Designer.cs
     文件        5814  2009-02-10 14:32  sj\02\RDShowForm\RDShowForm\Form1.resx
     文件         491  2009-02-10 14:32  sj\02\RDShowForm\RDShowForm\Program.cs
     文件        3766  2009-02-10 14:32  sj\02\RDShowForm\RDShowForm\RDShowForm.csproj
     文件        7680  2009-02-10 14:32  sj\02\RDShowForm\RDShowForm\bin\Debug\RDShowForm.exe
     文件       19968  2009-02-10 14:32  sj\02\RDShowForm\RDShowForm\bin\Debug\RDShowForm.pdb
............此处省略37个文件信息

评论

共有 条评论