• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 定时  定时关机  关机  

资源简介


资源截图

代码片段和文件信息

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

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

        private void Form1_Load(object sender EventArgs e)
        {
            label2.Text = DateTime.Now.ToString(“yyyy-MM-dd HH:mm:ss“);
            //默认状态下,DateTimePicker控件只显示日期,如果想更改为显示时间,或日期+时间,需要做以下设置:
            //控制日期或时间的显示格式
            dateTimePicker1.CustomFormat = “yyyy-MM-dd HH:mm:ss“;
            //使用自定义格式
            dateTimePicker1.Format = DateTimePickerFormat.Cust

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        187  2018-02-23 12:53  shutdown\shutdown\App.config

     文件      10134  2001-08-14 20:19  shutdown\shutdown\bin\Debug\Shut Down.ico

     文件      34816  2018-02-23 14:45  shutdown\shutdown\bin\Debug\shutdown.exe

     文件        187  2018-02-23 12:53  shutdown\shutdown\bin\Debug\shutdown.exe.config

     文件      26112  2018-02-23 14:45  shutdown\shutdown\bin\Debug\shutdown.pdb

     文件      22984  2018-02-23 14:44  shutdown\shutdown\bin\Debug\shutdown.vshost.exe

     文件        187  2018-02-23 12:53  shutdown\shutdown\bin\Debug\shutdown.vshost.exe.config

     文件        490  2010-03-17 22:39  shutdown\shutdown\bin\Debug\shutdown.vshost.exe.manifest

     文件       3577  2018-02-23 14:43  shutdown\shutdown\Form1.cs

     文件      10730  2018-02-23 14:37  shutdown\shutdown\Form1.Designer.cs

     文件      21509  2018-02-23 14:37  shutdown\shutdown\Form1.resx

     文件       1308  2018-02-23 14:44  shutdown\shutdown\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7117  2018-02-23 14:44  shutdown\shutdown\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        852  2018-02-23 14:45  shutdown\shutdown\obj\Debug\shutdown.csproj.FileListAbsolute.txt

     文件        975  2018-02-23 14:37  shutdown\shutdown\obj\Debug\shutdown.csproj.GenerateResource.Cache

     文件       2209  2018-02-23 13:05  shutdown\shutdown\obj\Debug\shutdown.csprojResolveAssemblyReference.cache

     文件      34816  2018-02-23 14:45  shutdown\shutdown\obj\Debug\shutdown.exe

     文件      10700  2018-02-23 14:45  shutdown\shutdown\obj\Debug\shutdown.Form1.resources

     文件      26112  2018-02-23 14:45  shutdown\shutdown\obj\Debug\shutdown.pdb

     文件        180  2018-02-23 14:45  shutdown\shutdown\obj\Debug\shutdown.Properties.Resources.resources

     文件          0  2018-02-23 12:53  shutdown\shutdown\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2018-02-23 12:53  shutdown\shutdown\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2018-02-23 12:53  shutdown\shutdown\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        520  2018-02-23 12:53  shutdown\shutdown\Program.cs

     文件       1354  2018-02-23 12:53  shutdown\shutdown\Properties\AssemblyInfo.cs

     文件       2868  2018-02-23 12:53  shutdown\shutdown\Properties\Resources.Designer.cs

     文件       5612  2018-02-23 12:53  shutdown\shutdown\Properties\Resources.resx

     文件       1095  2018-02-23 12:53  shutdown\shutdown\Properties\Settings.Designer.cs

     文件        249  2018-02-23 12:53  shutdown\shutdown\Properties\Settings.settings

     文件      10134  2018-02-23 14:44  shutdown\shutdown\Shut Down.ico

............此处省略14个文件信息

评论

共有 条评论