资源简介
C#编写的自动关机简单Demo
代码片段和文件信息
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 WindowsFormsApplication1
{
public partial class 关机 : Form
{
private DateTime end;
public 关机()
{
InitializeComponent();
yearLabel.Text = DateTime.Now.Year.ToString();
monthLabel.Text = DateTime.Now.Month.ToString();
dayLabel.Text = DateTime.Now.Day.ToString();
hourLabel.Text = DateTime.Now.Hour.ToString();
}
private void button1_Click(object sender EventArgs e)
{
shutdown();
}
public static void shutdown()
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2196 2018-04-18 18:47 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.application
文件 22984 2018-04-18 18:47 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
文件 3086 2018-04-18 18:47 WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
文件 2198 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.application
文件 16896 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.exe
文件 3089 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.exe.manifest
文件 24064 2018-04-18 18:49 WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.pdb
文件 2196 2018-04-18 18:49 WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.vshost.application
文件 22472 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.vshost.exe
文件 3086 2018-04-18 18:49 WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.vshost.exe.manifest
文件 3195 2018-04-18 18:48 WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs
文件 8105 2013-11-19 14:17 WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs
文件 13409 2013-11-19 14:17 WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx
文件 7259 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache
文件 2198 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\Release\WindowsFormsApplication1.application
文件 16896 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\Release\WindowsFormsApplication1.exe
文件 3089 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\Release\WindowsFormsApplication1.exe.manifest
文件 180 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\Release\WindowsFormsApplication1.Properties.Resources.resources
文件 5344 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\Release\WindowsFormsApplication1.关机.resources
文件 1177 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\Release\关机程序.csproj.FileListAbsolute.txt
文件 975 2018-04-18 18:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\Release\关机程序.csproj.GenerateResource.Cache
文件 2867 2018-04-18 18:47 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7258 2018-04-18 18:47 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 564 2013-11-19 14:18 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\GenerateResource.read.1.tlog
文件 1152 2013-11-19 14:18 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\GenerateResource.write.1.tlog
文件 1142 2013-04-07 13:50 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
文件 4516 2018-04-18 18:49 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Debug\关机程序.csproj.FileListAbsolute.txt
文件 7262 2018-04-18 18:49 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Release\DesignTimeResolveAssemblyReferencesInput.cache
文件 400 2013-04-07 10:36 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Release\GenerateResource.read.1.tlog
文件 974 2013-04-07 10:36 WindowsFormsApplication1\WindowsFormsApplication1\obj\x86\Release\GenerateResource.write.1.tlog
............此处省略39个文件信息
- 上一篇:C#ListBox中的Item拖拽
- 下一篇:c# 自定义控件库
相关资源
- C#联通网络宽带测试 拨号
- C#百度指数抓取方法(2012年版本已失
- C# 隐藏某个磁盘分区
- C# 读取并编辑window系统的右键菜单
- C#自定义屏保(不断滚动的文字)
- C#winform打印指定区域 -控件拖动 -设置
- C#使用Hook进行改键
- 提供C#调用系统API函数弹出或收起光驱
- 通过C#自带的头文件(类)获取Windo
- C#获取电脑CPU以及内存使用率
- 利用uu云打码平台的lib实现的c#打码平
- tf-idf一种计算方法
- C# pop3 邮件接收程序
- C# 邮件群发示例 源码下载18952
- 动态抓取IPC#实现
- XXTEA算法的C#实现和JS实现,可以互相
- C# 飞行棋 游戏源码(面向对象入门)
- 基于WinPcap的C# ARP欺骗软件().rar
- C#网络应用编程 矩阵并行计算练习
- 《C#版Ftp软件源码》
-
C# 播放铃声(AxWindowsMediaPla
yer)最新 - C# 把图片显示成椭圆形状
- C# 水平交错效果显示图像
- winform 浮雕效果的图像
- c# 底片效果显示图像就像旧式相机的
- 积木效果显示图像
- C# 隐形窗体 (没有边框,没有标题栏
- browerPhotoC#网页截图(不打开网页)
- C# 模拟时钟(自绘Graphics)
- C#之WPF重绘动态正弦余弦曲线
评论
共有 条评论