• 大小: 3.31M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-04-29
  • 语言: C#
  • 标签: 关机  远程  开机  

资源简介

通过MAC地址控制远程开机,通过IP地址控制关机。

资源截图

代码片段和文件信息

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 WakeAndShutdown
{
    public delegate void saveAreaInfo(string height string width string title Color  color);



    public partial class AreaInfo : Form
    {

        public saveAreaInfo SaveAreaInfo;

        /// 
        /// 获取或者设置宽
        /// 

        public string selfWidth
        {
            get { return txtWidth.Text.Trim(); }
            set { txtWidth.Text = value; }
        }
        /// 
        /// 获取或者设置高
        /// 

        public string selfHeight
        {
            get { return txtHeight.Text.Trim(); }
            set { txtHeight.Text = value; }
        }

        /// 
        /// 设置或者获取标题
        /// 

        public string selftitle
        {
            get { return txttitle.Text.Trim(); }
            set { txttitle.Text = value; }
        }
        /// 
        /// 获取或者设置颜色
        /// 

        public Color  selfColor
        {
            get { return myC; }
            set { myC = value; txtColor.Text = string.Format(“{0}{1}{2}{3}“ myC.A myC.R myC.G myC.B); }
        }
        Color myC;
        public AreaInfo()
        {
            InitializeComponent();
        }

        private void btnCancel_Click(object sender EventArgs e)
        {
            this.Close();
            this.Dispose();
        }

        private void btnSave_Click(object sender EventArgs e)
        {
            SaveAreaInfo(selfHeight selfWidth selftitle selfColor);
            this.Close();
            this.Dispose();
        }



        private void button1_Click_1(object sender EventArgs e)
        {
            colorDialog1.AllowFullOpen = true;
            colorDialog1.ShowDialog();
            selfColor = colorDialog1.Color;
            txtColor.Text = string.Format(“{0}{1}{2}{3}“ selfColor.A selfColor.R selfColor.G selfColor.B);
            
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-06-09 15:51  WakeAndShutdown\
     文件         935  2011-04-18 09:14  WakeAndShutdown.sln
     文件       36864  2011-10-29 23:08  WakeAndShutdown.suo
     文件      136606  2011-05-04 22:33  WakeAndShutdown\200884181155578778037.ico
     文件        1913  2011-06-02 15:53  WakeAndShutdown\App.config
     文件        2245  2011-04-25 09:50  WakeAndShutdown\AreaInfo.cs
     文件        7510  2011-04-25 09:27  WakeAndShutdown\AreaInfo.Designer.cs
     文件        6014  2011-04-25 09:27  WakeAndShutdown\AreaInfo.resx
     文件        3420  2011-06-02 15:20  WakeAndShutdown\AreaPanel.cs
     文件        5172  2011-04-26 15:57  WakeAndShutdown\AreaPanel.Designer.cs
     文件        6019  2011-04-26 15:57  WakeAndShutdown\AreaPanel.resx
     目录           0  2011-06-10 10:23  WakeAndShutdown\bin\
     目录           0  2011-06-10 10:24  WakeAndShutdown\bin\Debug\
     文件      270336  2006-03-30 13:24  WakeAndShutdown\bin\Debug\log4net.dll
     文件        2888  2011-06-02 15:38  WakeAndShutdown\bin\Debug\pcposition-bak.xml
     文件        8757  2011-05-31 10:58  WakeAndShutdown\bin\Debug\pcposition.xml
     文件        1863  2011-06-10 10:24  WakeAndShutdown\bin\Debug\WakeAndShutdown.application
     文件      834048  2011-06-10 10:24  WakeAndShutdown\bin\Debug\WakeAndShutdown.exe
     文件        1913  2011-06-02 15:53  WakeAndShutdown\bin\Debug\WakeAndShutdown.exe.config
     文件        5771  2011-06-10 10:24  WakeAndShutdown\bin\Debug\WakeAndShutdown.exe.manifest
     文件       85504  2011-06-10 10:24  WakeAndShutdown\bin\Debug\WakeAndShutdown.pdb
     文件        1863  2011-06-10 10:24  WakeAndShutdown\bin\Debug\WakeAndShutdown.vshost.application
     文件       14328  2011-10-30 09:41  WakeAndShutdown\bin\Debug\WakeAndShutdown.vshost.exe
     文件        1913  2011-06-02 15:53  WakeAndShutdown\bin\Debug\WakeAndShutdown.vshost.exe.config
     目录           0  2011-06-10 10:24  WakeAndShutdown\bin\Release\
     文件       14328  2011-06-10 10:23  WakeAndShutdown\bin\Release\WakeAndShutdown.vshost.exe
     文件        1913  2011-06-02 15:53  WakeAndShutdown\bin\Release\WakeAndShutdown.vshost.exe.config
     文件        4684  2011-04-26 17:34  WakeAndShutdown\DesktopComputer.cs
     文件        5921  2011-04-26 17:34  WakeAndShutdown\DesktopComputer.Designer.cs
     文件       83118  2011-04-26 17:34  WakeAndShutdown\DesktopComputer.resx
     文件       16581  2011-06-09 15:51  WakeAndShutdown\Form1.cs
............此处省略47个文件信息

评论

共有 条评论