常用小工具

2015-12-08 12:17:10  访问(1246) 赞(0) 踩(0)


相关下载:SlowX.ToolOperApp[code].zip  SlowX.ToolOperApp[release].zip     




  • 源码cs

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Drawing;
    using System.Data;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Reflection;
    using System.Collections.Specialized;
    
    namespace SlowX.ToolOperApp.UserControls
    {
        /// <summary>
        /// 常用小工具
        /// </summary>
        public partial class MainList
            :
            UserControl
        {
    
            /// <summary>
            /// 
            /// </summary>
            /// <returns></returns>
            public UserControl ReCreate()
            {
                return new MainList();
            }
    
            /// <summary>
            /// 常用小工具
            /// </summary>
            public MainList
                ( 
                )  
            {
                InitializeComponent();
    
    
                StringBuilder formToolTipText = new StringBuilder();
                formToolTipText.AppendLine("小工具");
                formToolTipText.AppendLine("控件Assembly:" + this.GetType().Assembly.FullName);
                formToolTipText.AppendLine("控件地址:" + this.GetType().FullName);
    
                toolStripDropDownButton_Title.Text = "小工具";
                toolStripDropDownButton_Title.ToolTipText = formToolTipText.ToString();
    
                for (int i = 0; i < 256; ++i)
                {
                    cbb_ColorB.Items.Add(i.ToString());
                    cbb_ColorG.Items.Add(i.ToString());
                    cbb_ColorR.Items.Add(i.ToString());
                }
    
    
    
    
                comboBox_From进制类型.Items.Add("2");
                comboBox_From进制类型.Items.Add("8");
                comboBox_From进制类型.Items.Add("10");
                comboBox_From进制类型.Items.Add("16");
    
                comboBox_To进制类型.Items.Add("2");
                comboBox_To进制类型.Items.Add("8");
                comboBox_To进制类型.Items.Add("10");
                comboBox_To进制类型.Items.Add("16");
    
                comboBox_From进制类型.SelectedIndex = 2;
                comboBox_To进制类型.SelectedIndex = 3;
    
                cbb_ColorR.Text = "0";
                cbb_ColorG.Text = "0";
                cbb_ColorB.Text = "0";
    
                try
                {
                    ColorConvertClick();
    
                    DataBindColorName();
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
    
                 
           
            }
    
            protected void DataBindColorName()
            {
                Type t = typeof(KnownColor);
    
                Array valueArray = System.Enum.GetValues(t);
    
                comboBox_ColorName.Items.Add(" ");
    
                foreach (int ob in valueArray)
                {
                    comboBox_ColorName.Items.Add((System.Enum.Parse(t, ob.ToString()) as System.Enum).ToString());
                }
            }
    
            /// <summary>
            /// 打开记事本
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_打开记事本_Click(object sender, EventArgs e)
            {
                try
                {
                    System.Diagnostics.Process.Start("notepad");
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
    
            }
    
    
            /// <summary>
            /// 打开服务
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_打开服务_Click(object sender, EventArgs e)
            {
                try
                {
                    System.Diagnostics.Process.Start("services.msc");
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
    
            }
    
            private void button_打开管理工具_Click(object sender, EventArgs e)
            {
    
    
                try
                {
                    System.Diagnostics.Process.Start("compmgmt.msc");
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
            private void button_打开控制面板_Click(object sender, EventArgs e)
            {
    
    
                try
                {
                    System.Diagnostics.Process.Start("control.exe");
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
    
            }
    
            private void button_打开策略组_Click(object sender, EventArgs e)
            {
                try
                {
                    System.Diagnostics.Process.Start("gpedit.msc");
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
    
            }
    
            private void button_打开注册表_Click(object sender, EventArgs e)
            {
                try
                {
                    System.Diagnostics.Process.Start("regedit");
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
            /// <summary>
            /// 打开画图
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_打开画图_Click(object sender, EventArgs e)
            {
                try
                {
                    System.Diagnostics.Process.Start("mspaint");
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
    
            /// <summary>
            /// 10进制转成16进制
            /// </summary>
            /// <param name="i"></param>
            /// <returns></returns>
            public   string ConvertHex(int i)
            {
                return ConvertNumber(i.ToString(), 10, 16);
            }
    
            /// <summary>
            /// 10进制转成16进制
            /// </summary>
            /// <param name="str"></param>
            /// <returns></returns>
            public   string ConvertHex(string str)
            {
                return ConvertNumber(str, 10, 16);
            }
    
            /// <summary>
            /// 16进制输入返回对应的整型值
            /// </summary>
            /// <param name="str"></param>
            /// <returns></returns>
            public   int HexReturn(string str)
            {
                return int.Parse(ConvertNumber(str, 16, 10));
            }
    
            /// <summary>
            /// 10进制转成8进制
            /// </summary>
            /// <param name="str"></param>
            /// <returns></returns>
            public   string ConvertOct(string str)
            {
                return ConvertNumber(str, 10, 8);
            }
    
            /// <summary>
            /// 10进制转成8进制
            /// </summary>
            /// <param name="i"></param>
            /// <returns></returns>
            public   string ConvertOct(int i)
            {
                return ConvertNumber(i.ToString(), 10, 8);
            }
    
            /// <summary>
            /// 进制转换
            /// </summary>
            /// <param name="str"></param>
            /// <param name="from"></param>
            /// <param name="to"></param>
            /// <returns></returns>
            public   string ConvertNumber
                (
                    string str,
                    int from,
                    int to
                )
            {
                if (str == null || str.Length == 0)
                    return "";
    
                if (from == to)
                    return str;
    
                string strResult = string.Empty;
    
                if (from == 10)
                {
                    int iValue = int.Parse(str);
    
                    strResult = Convert.ToString(iValue, to);
    
                    return strResult;
                }
                else
                {
                    if (to == 10)
                    {
                        strResult = Convert.ToInt32(str, from).ToString();
    
                        return strResult;
                    }
                    else
                    {
                        strResult = ConvertNumber(str, from, 10);
    
                        strResult = ConvertNumber(strResult, 10, to);
    
                        return strResult;
                    }
    
                }
    
                ////十进制转二进制
                //Response.Write("十进制166的二进制表示: " + Convert.ToString(166, 2));
                ////十进制转八进制
                //Response.Write("十进制166的八进制表示: " + Convert.ToString(166, 8));
                ////十进制转十六进制
                //Response.Write("十进制166的十六进制表示: " + Convert.ToString(166, 16));
    
                ////二进制转十进制
                //Response.Write("二进制 111101 的十进制表示: " + Convert.ToInt32("111101", 2));
                ////八进制转十进制
                //Response.Write("八进制 44 的十进制表示: " + Convert.ToInt32("44", 8));
                ////十六进制转十进制
                //Response.Write("十六进制 CC的十进制表示: " + Convert.ToInt32("CC", 16)); 
            }
    
            /// <summary>
            /// RGB转成颜色
            /// </summary>
            /// <param name="r"></param>
            /// <param name="g"></param>
            /// <param name="b"></param>
            /// <returns></returns>
            public string RGBToColor(int r, int g, int b)
            {
                return
                    ConvertHex(r).PadLeft(2, '0')
                    +
                    ConvertHex(g).PadLeft(2, '0')
                    +
                    ConvertHex(b).PadLeft(2, '0');
            }
    
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void btn_ColorConvert_Click(object sender, EventArgs e)
            {
                try
                {
                    ColorConvertClick();
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
    
            }
    
            /// <summary>
            /// 
            /// </summary>
            protected void ColorConvertClick()
            {
                int r = int.Parse(cbb_ColorR.Text);
                int g = int.Parse(cbb_ColorG.Text);
                int b = int.Parse(cbb_ColorB.Text);
    
                this.cbb_ColorResult.Text =
                    RGBToColor(r,g,b);
    
                this.panel_Color.BackColor =
                    System.Drawing.Color.FromArgb(r, g, b);
    
                // KnownColor.ActiveBorder
                // System.Drawing.Color.FromName("red");
                 // System.Drawing.Color.FromKnownColor(KnownColor.ActiveBorder).a
            }
    
            private void button_转换_Click(object sender, EventArgs e)
            {
                try
                {
                    ColorNameConvertClick();
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
            /// <summary>
            /// 
            /// </summary>
            protected void ColorNameConvertClick()
            {
                string theName = comboBox_ColorName.Text.Trim();
    
                if (theName.Length == 0)
                    return;
    
                System.Drawing.Color theColor = System.Drawing.Color.FromName(theName);
    
                cbb_ColorR.Text = theColor.R.ToString();
                cbb_ColorG.Text = theColor.G.ToString();
                cbb_ColorB.Text = theColor.B.ToString();
    
                ColorConvertClick();
            }
    
            private void button_打开计算器_Click(object sender, EventArgs e)
            {
                try
                {
                    System.Diagnostics.Process.Start("calc.exe");
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
    
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_进制转换_Click(object sender, EventArgs e)
            {
                try
                {
                    int fromValue = int.Parse(this.comboBox_From进制类型.Text);
                    int toValue = int.Parse(this.comboBox_To进制类型.Text);
    
                    if (fromValue == toValue)
                        comboBox_To.Text = comboBox_From.Text;
    
                    comboBox_To.Text = ConvertNumber(comboBox_From.Text.Trim(), fromValue, toValue);
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
            private void button_选颜色_Click(object sender, EventArgs e)
            {
                ColorDialog cd = new ColorDialog();
    
                if (cd.ShowDialog() == DialogResult.OK)
                {
    
                    try
                    {
                        cbb_ColorR.Text = cd.Color.R.ToString();
                        cbb_ColorG.Text = cd.Color.G.ToString();
                        cbb_ColorB.Text = cd.Color.B.ToString();
    
                        ColorConvertClick();
                    }
                    catch (Exception err)
                    {
                        MessageBox.Show(err.Message);
                    }
                }
            }
    
    
            #region 
    
            
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void 刷新ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                try
                {
                    RefleshCtrl();
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
    
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void 关闭ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                try
                {
                    FormTitleClose();
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void 关闭所有ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                try
                {
                    FormTitleCloseAll();
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void 除此之外全部关闭ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                try
                {
                    FormTitleCloseOthers();
                }
                catch (Exception err)
                {
                    MessageBox.Show(err.Message);
                }
            }
    
    
            /// <summary>
            /// 刷新
            /// </summary>
            public void RefleshCtrl()
            {
    
                UserControl uc = ReCreate();
    
                if (uc == null)
                    return;
    
                uc.Dock = DockStyle.Fill;
                Control pCtrl = this.Parent;
    
                pCtrl.Controls.Clear();
                pCtrl.Controls.Add(uc);
            }
    
    
            /// <summary>
            /// 获得TabControl
            /// </summary>
            /// <returns></returns>
            public TabPage GetTabPage(Control cItem)
            {
    
                while (true)
                {
                    if (cItem.Parent == null)
                        break;
    
                    if (cItem.Parent is TabPage)
                        return cItem.Parent as TabPage;
    
                    cItem = cItem.Parent;
                }
    
                return null;
            }
    
    
            /// <summary>
            /// 获得TabControl
            /// </summary>
            /// <returns></returns>
            public TabControl GetTabControl(Control cItem)
            {
                while (true)
                {
                    if (cItem.Parent == null)
                        break;
    
                    if (cItem.Parent is TabControl)
                        return cItem.Parent as TabControl;
    
                    cItem = cItem.Parent;
                }
    
                return null;
            }
    
            /// <summary>
            /// 
            /// </summary>
            protected void FormTitleClose()
            {
                TabPage tp = GetTabPage(this);
    
                if (tp == null)
                {
                    Form theForm = this.FindForm();
    
                    if (theForm != null)
                        theForm.Close();
    
                    return;
                }
    
                TabControl tabCtrl = GetTabControl(tp);
    
                if (tabCtrl != null)
                    tabCtrl.TabPages.Remove(tp);
    
            }
    
            /// <summary>
            /// 
            /// </summary>
            protected void FormTitleCloseAll()
            {
    
                TabPage tp = GetTabPage(this);
    
                if (tp == null)
                    return;
    
                TabControl tabCtrl = GetTabControl(tp);
    
                if (tabCtrl == null)
                    return;
    
                int iCount = tabCtrl.TabPages.Count;
    
                tp = null;
    
                for (int j = iCount - 1; j >= 0; --j)
                {
                    tp = tabCtrl.TabPages[j];
    
                    if (tp == null)
                        continue;
    
                    if (tp.Tag != null && tp.Tag.ToString() == "0")
                        continue;
    
                    tabCtrl.TabPages.RemoveAt(j);
                    tp.Dispose();
                }
    
            }
    
    
            /// <summary>
            /// 
            /// </summary>
            protected void FormTitleCloseOthers()
            {
    
                TabPage tpCur = GetTabPage(this);
    
                if (tpCur == null)
                    return;
    
                TabControl tabCtrl = GetTabControl(tpCur);
    
                if (tabCtrl == null)
                    return;
    
                int iCount = tabCtrl.TabPages.Count;
    
                TabPage tp = null;
    
                for (int j = iCount - 1; j >= 0; --j)
                {
                    tp = tabCtrl.TabPages[j];
    
                    if (tp == null)
                        continue;
    
                    if (tp == tpCur)
                        continue;
    
                    if (tp.Tag != null && tp.Tag.ToString() == "0")
                        continue;
    
                    tabCtrl.TabPages.RemoveAt(j);
                    tp.Dispose();
                }
            }
     
    
            #endregion 
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_打开host文件目录_Click(object sender, EventArgs e)
            {
                string dirName = System.Environment.GetFolderPath(Environment.SpecialFolder.System) + "\\drivers\\etc";
    
                System.Diagnostics.Process.Start("explorer.exe", dirName);  
            }
    
            private void button_打开下载目录_Click(object sender, EventArgs e)
            {
                string dirName = System.Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
    
                if(dirName.EndsWith("图片"))
                    dirName = dirName.Substring(0,dirName.Length-2)+"下载";
    
                if (Directory.Exists(dirName))
                    System.Diagnostics.Process.Start("explorer.exe", dirName);
                else
                    MessageBox.Show("找不到目录。");
    
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_打开目录_Click(object sender, EventArgs e)
            {
                try
                {
                    string str = comboBox_FileName.Text.Trim();
    
                    if (str.Length == 0)
                    {
                        MsgForm.MsgShowDialog("请输入文件名称。");
                        comboBox_FileName.Focus();
                        comboBox_FileName.Select();
                        return;
                    }
    
                    FileInfo fi = new FileInfo(str);
    
                    DirectoryInfo di = fi.Directory;
    
                    if (!di.Exists)
                    {
                        MsgForm.MsgShowDialog("目录" + di.FullName + "不存在。");
                        comboBox_FileName.Focus();
                        comboBox_FileName.Select();
                        return;
                    }
    
                    System.Diagnostics.Process.Start
                        (
                            "explorer.exe", 
                            di.FullName
                        );
                }
                catch (Exception err)
                {
                    MsgForm.MsgShowDialog(err.Message);
                }
    
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_自动适配_Click(object sender, EventArgs e)
            {
                try
                {
                    string str = comboBox_FileName.Text.Trim();
    
                    if (str.Length == 0)
                    {
                        MsgForm.MsgShowDialog("请输入文件名称。");
                        comboBox_FileName.Focus();
                        comboBox_FileName.Select();
                        return;
                    }
    
                    FileInfo fi = new FileInfo(str);
    
                    DirectoryInfo di = fi.Directory;
    
                    if (!di.Exists)
                    {
                        MsgForm.MsgShowDialog("目录" + di.FullName + "不存在。");
                        comboBox_FileName.Focus();
                        comboBox_FileName.Select();
                        return;
                    }
    
                    string fileName = fi.Name;
    
                    string fileNoExName = GetFileNoExName(fileName).Trim().ToLower();
    
                    string tmpFile = null;
    
                    FileInfo[] fiArray = di.GetFiles();
    
                    bool isFindCur = false;
                    FileInfo findFileInfo = null;
    
    
                    foreach (FileInfo info in fiArray)
                    {
                        if (info.FullName == fi.FullName)
                        {
                            isFindCur = true;
                            continue;
                        }
    
                        tmpFile = GetFileNoExName(info.Name).ToLower().Trim();
    
                        if (tmpFile != fileNoExName)
                        {
                            continue;
                        }
    
                        if (isFindCur)
                        {
                            findFileInfo = info;
                            break;
                        }
                        else
                        {
                            if (findFileInfo == null)
                                findFileInfo = info;
                        }
                    }
    
                    if (findFileInfo == null)
                    {
                        if(!isFindCur)
                            MsgForm.MsgShowDialog("没有找到适配");
                    }
                    else
                    {
                        comboBox_FileName.Text = findFileInfo.FullName;
                    }
                }
                catch (Exception err)
                {
                    MsgForm.MsgShowDialog(err.Message);
                }
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="fileName"></param>
            /// <returns></returns>
            protected string GetFileNoExName(string fileName)
            {
                int idx = fileName.LastIndexOf('.');
    
                if (idx != -1)
                {
                    return fileName.Substring(0, idx);
                }
    
                return fileName;
    
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_notepad打开_Click(object sender, EventArgs e)
            {
                RunExec(SlowX.ToolOperApp.Enums.ExecName.EmExecName.记事本);
            }
    
            protected void RunExec(SlowX.ToolOperApp.Enums.ExecName.EmExecName em)
            {
    
    
                try
                {
                    string str = comboBox_FileName.Text.Trim();
    
                    if (str.Length == 0)
                    {
                        MsgForm.MsgShowDialog("请输入文件名称。");
                        comboBox_FileName.Focus();
                        comboBox_FileName.Select();
                        return;
                    }
    
                    FileInfo fi = new FileInfo(str);
    
                    if (!fi.Exists)
                    {
                        MsgForm.MsgShowDialog("文件" + fi.FullName + "不存在。");
                        comboBox_FileName.Focus();
                        comboBox_FileName.Select();
                        return;
                    }
    
                    string exec = GetExecName(em);
    
                    System.Diagnostics.Process.Start
                        (
                            exec,
                            fi.FullName
                        );
                }
                catch (Exception err)
                {
                    MsgForm.MsgShowDialog(err.Message);
                }
    
                // System.Diagnostics.Process.Start(, @"C:\tmpfiles\filetxt.txt");
            }
    
            protected string GetExecName(SlowX.ToolOperApp.Enums.ExecName.EmExecName em)
            {
                switch (em)
                {
                    case SlowX.ToolOperApp.Enums.ExecName.EmExecName.记事本:
                        return "notepad.exe";
                    case SlowX.ToolOperApp.Enums.ExecName.EmExecName.Uedit:
                        return @"C:\Program Files (x86)\UltraEdit\Uedit32.exe";
                    case SlowX.ToolOperApp.Enums.ExecName.EmExecName.VS2008:
                        return @"C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe";
                    case SlowX.ToolOperApp.Enums.ExecName.EmExecName.VS2010:
                        return @"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe";
                    case SlowX.ToolOperApp.Enums.ExecName.EmExecName.VS2012:
                        return @"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe";
                    case SlowX.ToolOperApp.Enums.ExecName.EmExecName.缺省:
                        return "explorer.exe";
                    default:
    
                        throw new Exception
                            (
                                "方法:"
                                + MethodBase.GetCurrentMethod().ReflectedType.FullName
                                + " "
                                + MethodBase.GetCurrentMethod().ToString()
                                + " 发生异常:"
                                + "枚举("
                                + em.GetType().FullName
                                + "."
                                + em.ToString()
                                + ")未知,对应的代码尚未实现。"
                            );
    
                }
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_Uedit打开_Click(object sender, EventArgs e)
            {
                RunExec(SlowX.ToolOperApp.Enums.ExecName.EmExecName.Uedit);
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_VS2012_Click(object sender, EventArgs e)
            {
                SlowX.ToolOperApp.Enums.ExecName.EmExecName
                    em
                    = 
                    SlowX.ToolOperApp.Enums.ExecName.EmExecName.VS2012; 
    
                RunExec(em);
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_VS2010_Click(object sender, EventArgs e)
            {
                
                SlowX.ToolOperApp.Enums.ExecName.EmExecName
                    em
                    = 
                    SlowX.ToolOperApp.Enums.ExecName.EmExecName.VS2010;
    
                RunExec(em);
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_VS2008_Click(object sender, EventArgs e)
            {
                
                SlowX.ToolOperApp.Enums.ExecName.EmExecName
                    em
                    = 
                    SlowX.ToolOperApp.Enums.ExecName.EmExecName.VS2008;
    
                RunExec(em);
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void button_缺省打开_Click(object sender, EventArgs e)
            {
                SlowX.ToolOperApp.Enums.ExecName.EmExecName
                    em
                    =
                    SlowX.ToolOperApp.Enums.ExecName.EmExecName.缺省;
    
                RunExec(em);
            }
    
            /// <summary>
            /// 
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void toolStripButton_粘贴复制的文件完整路径_Click(object sender, EventArgs e)
            {
    
    
                try
                {
                    string[] sA = ClipboardFileFullNameGet();
    
                    if (sA == null || sA.Length == 0)
                    {
                        MsgForm.MsgShowDialog("粘贴板没有数据");
                        return;
                    }
    
                    comboBox_FileName.Text = sA[0];
    
                }
                catch (Exception err)
                {
                    MsgForm.MsgShowDialog(err.Message);
                }
    
            }
    
    
            /// <summary>
            /// 获得粘贴板中复制的文件的完整路径
            /// </summary>
            protected string[] ClipboardFileFullNameGet()
            {
                StringCollection sc = Clipboard.GetFileDropList();
                string[] sA = new string[sc.Count];
    
                for (int i = 0; i < sc.Count; ++i)
                {
                    sA[i] = sc[i];
                }
    
                return sA;
            }
    
        }
    }
    
    
  • 源码Designer.cs

    namespace SlowX.ToolOperApp.UserControls
    {
        partial class MainList
        {
            /// <summary> 
            /// 必需的设计器变量。
            /// </summary>
            private System.ComponentModel.IContainer components = null;
    
            /// <summary> 
            /// 清理所有正在使用的资源。
            /// </summary>
            /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing && (components != null))
                {
                    components.Dispose();
                }
                base.Dispose(disposing);
            }
    
            #region 组件设计器生成的代码
    
            /// <summary> 
            /// 设计器支持所需的方法 - 不要
            /// 使用代码编辑器修改此方法的内容。
            /// </summary>
            private void InitializeComponent()
            {
                this.panel5 = new System.Windows.Forms.Panel();
                this.groupBox3 = new System.Windows.Forms.GroupBox();
                this.button_缺省打开 = new System.Windows.Forms.Button();
                this.button_VS2012 = new System.Windows.Forms.Button();
                this.button_VS2010 = new System.Windows.Forms.Button();
                this.button_VS2008 = new System.Windows.Forms.Button();
                this.button_Uedit打开 = new System.Windows.Forms.Button();
                this.button_notepad打开 = new System.Windows.Forms.Button();
                this.button_打开目录 = new System.Windows.Forms.Button();
                this.button_自动适配 = new System.Windows.Forms.Button();
                this.label5 = new System.Windows.Forms.Label();
                this.comboBox_FileName = new System.Windows.Forms.ComboBox();
                this.groupBox2 = new System.Windows.Forms.GroupBox();
                this.comboBox_To = new System.Windows.Forms.ComboBox();
                this.comboBox_From进制类型 = new System.Windows.Forms.ComboBox();
                this.button_进制转换 = new System.Windows.Forms.Button();
                this.comboBox_From = new System.Windows.Forms.ComboBox();
                this.comboBox_To进制类型 = new System.Windows.Forms.ComboBox();
                this.panel6 = new System.Windows.Forms.Panel();
                this.groupBox1 = new System.Windows.Forms.GroupBox();
                this.button_选颜色 = new System.Windows.Forms.Button();
                this.button_转换 = new System.Windows.Forms.Button();
                this.comboBox_ColorName = new System.Windows.Forms.ComboBox();
                this.label4 = new System.Windows.Forms.Label();
                this.groupBox_Color = new System.Windows.Forms.GroupBox();
                this.panel_Color = new System.Windows.Forms.Panel();
                this.label2 = new System.Windows.Forms.Label();
                this.cbb_ColorR = new System.Windows.Forms.ComboBox();
                this.btn_ColorConvert = new System.Windows.Forms.Button();
                this.cbb_ColorG = new System.Windows.Forms.ComboBox();
                this.label1 = new System.Windows.Forms.Label();
                this.cbb_ColorResult = new System.Windows.Forms.ComboBox();
                this.cbb_ColorB = new System.Windows.Forms.ComboBox();
                this.label3 = new System.Windows.Forms.Label();
                this.panel4 = new System.Windows.Forms.Panel();
                this.groupBox_常用按钮 = new System.Windows.Forms.GroupBox();
                this.button_打开下载目录 = new System.Windows.Forms.Button();
                this.button_打开host文件目录 = new System.Windows.Forms.Button();
                this.button_打开计算器 = new System.Windows.Forms.Button();
                this.button_打开画图 = new System.Windows.Forms.Button();
                this.button_打开注册表 = new System.Windows.Forms.Button();
                this.button_打开策略组 = new System.Windows.Forms.Button();
                this.button_打开控制面板 = new System.Windows.Forms.Button();
                this.button_打开管理工具 = new System.Windows.Forms.Button();
                this.button_打开服务 = new System.Windows.Forms.Button();
                this.button_打开记事本 = new System.Windows.Forms.Button();
                this.toolStrip1 = new System.Windows.Forms.ToolStrip();
                this.panel1 = new System.Windows.Forms.Panel();
                this.panel2 = new System.Windows.Forms.Panel();
                this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
                this.toolStripDropDownButton_Title = new System.Windows.Forms.ToolStripDropDownButton();
                this.刷新ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.关闭ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.关闭所有ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.除此之外全部关闭ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
                this.toolStripButton_粘贴复制的文件完整路径 = new System.Windows.Forms.ToolStripButton();
                this.panel5.SuspendLayout();
                this.groupBox3.SuspendLayout();
                this.groupBox2.SuspendLayout();
                this.groupBox1.SuspendLayout();
                this.groupBox_Color.SuspendLayout();
                this.groupBox_常用按钮.SuspendLayout();
                this.toolStrip1.SuspendLayout();
                this.SuspendLayout();
                // 
                // panel5
                // 
                this.panel5.Controls.Add(this.groupBox3);
                this.panel5.Controls.Add(this.groupBox2);
                this.panel5.Controls.Add(this.panel6);
                this.panel5.Controls.Add(this.groupBox1);
                this.panel5.Controls.Add(this.panel4);
                this.panel5.Controls.Add(this.groupBox_常用按钮);
                this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
                this.panel5.Location = new System.Drawing.Point(10, 25);
                this.panel5.Name = "panel5";
                this.panel5.Size = new System.Drawing.Size(800, 520);
                this.panel5.TabIndex = 4;
                // 
                // groupBox3
                // 
                this.groupBox3.Controls.Add(this.button_缺省打开);
                this.groupBox3.Controls.Add(this.button_VS2012);
                this.groupBox3.Controls.Add(this.button_VS2010);
                this.groupBox3.Controls.Add(this.button_VS2008);
                this.groupBox3.Controls.Add(this.button_Uedit打开);
                this.groupBox3.Controls.Add(this.button_notepad打开);
                this.groupBox3.Controls.Add(this.button_打开目录);
                this.groupBox3.Controls.Add(this.button_自动适配);
                this.groupBox3.Controls.Add(this.label5);
                this.groupBox3.Controls.Add(this.comboBox_FileName);
                this.groupBox3.Dock = System.Windows.Forms.DockStyle.Top;
                this.groupBox3.Location = new System.Drawing.Point(0, 336);
                this.groupBox3.Name = "groupBox3";
                this.groupBox3.Size = new System.Drawing.Size(800, 157);
                this.groupBox3.TabIndex = 9;
                this.groupBox3.TabStop = false;
                this.groupBox3.Text = "打开程序";
                // 
                // button_缺省打开
                // 
                this.button_缺省打开.Location = new System.Drawing.Point(404, 67);
                this.button_缺省打开.Name = "button_缺省打开";
                this.button_缺省打开.Size = new System.Drawing.Size(110, 23);
                this.button_缺省打开.TabIndex = 63;
                this.button_缺省打开.Text = "缺省打开";
                this.button_缺省打开.UseVisualStyleBackColor = true;
                this.button_缺省打开.Click += new System.EventHandler(this.button_缺省打开_Click);
                // 
                // button_VS2012
                // 
                this.button_VS2012.Location = new System.Drawing.Point(277, 111);
                this.button_VS2012.Name = "button_VS2012";
                this.button_VS2012.Size = new System.Drawing.Size(110, 23);
                this.button_VS2012.TabIndex = 62;
                this.button_VS2012.Text = "VS2012";
                this.button_VS2012.UseVisualStyleBackColor = true;
                this.button_VS2012.Click += new System.EventHandler(this.button_VS2012_Click);
                // 
                // button_VS2010
                // 
                this.button_VS2010.Location = new System.Drawing.Point(150, 111);
                this.button_VS2010.Name = "button_VS2010";
                this.button_VS2010.Size = new System.Drawing.Size(110, 23);
                this.button_VS2010.TabIndex = 61;
                this.button_VS2010.Text = "VS2010";
                this.button_VS2010.UseVisualStyleBackColor = true;
                this.button_VS2010.Click += new System.EventHandler(this.button_VS2010_Click);
                // 
                // button_VS2008
                // 
                this.button_VS2008.Location = new System.Drawing.Point(15, 111);
                this.button_VS2008.Name = "button_VS2008";
                this.button_VS2008.Size = new System.Drawing.Size(110, 23);
                this.button_VS2008.TabIndex = 60;
                this.button_VS2008.Text = "VS2008";
                this.button_VS2008.UseVisualStyleBackColor = true;
                this.button_VS2008.Click += new System.EventHandler(this.button_VS2008_Click);
                // 
                // button_Uedit打开
                // 
                this.button_Uedit打开.Location = new System.Drawing.Point(277, 67);
                this.button_Uedit打开.Name = "button_Uedit打开";
                this.button_Uedit打开.Size = new System.Drawing.Size(110, 23);
                this.button_Uedit打开.TabIndex = 59;
                this.button_Uedit打开.Text = "Uedit打开";
                this.button_Uedit打开.UseVisualStyleBackColor = true;
                this.button_Uedit打开.Click += new System.EventHandler(this.button_Uedit打开_Click);
                // 
                // button_notepad打开
                // 
                this.button_notepad打开.Location = new System.Drawing.Point(150, 67);
                this.button_notepad打开.Name = "button_notepad打开";
                this.button_notepad打开.Size = new System.Drawing.Size(110, 23);
                this.button_notepad打开.TabIndex = 58;
                this.button_notepad打开.Text = "notepad打开";
                this.button_notepad打开.UseVisualStyleBackColor = true;
                this.button_notepad打开.Click += new System.EventHandler(this.button_notepad打开_Click);
                // 
                // button_打开目录
                // 
                this.button_打开目录.Location = new System.Drawing.Point(15, 67);
                this.button_打开目录.Name = "button_打开目录";
                this.button_打开目录.Size = new System.Drawing.Size(110, 23);
                this.button_打开目录.TabIndex = 57;
                this.button_打开目录.Text = "打开目录";
                this.button_打开目录.UseVisualStyleBackColor = true;
                this.button_打开目录.Click += new System.EventHandler(this.button_打开目录_Click);
                // 
                // button_自动适配
                // 
                this.button_自动适配.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
                this.button_自动适配.Location = new System.Drawing.Point(710, 30);
                this.button_自动适配.Name = "button_自动适配";
                this.button_自动适配.Size = new System.Drawing.Size(72, 23);
                this.button_自动适配.TabIndex = 56;
                this.button_自动适配.Text = "自动适配";
                this.button_自动适配.UseVisualStyleBackColor = true;
                this.button_自动适配.Click += new System.EventHandler(this.button_自动适配_Click);
                // 
                // label5
                // 
                this.label5.AutoSize = true;
                this.label5.Location = new System.Drawing.Point(13, 35);
                this.label5.Name = "label5";
                this.label5.Size = new System.Drawing.Size(65, 12);
                this.label5.TabIndex = 55;
                this.label5.Text = "文件名称:";
                this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                // 
                // comboBox_FileName
                // 
                this.comboBox_FileName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                            | System.Windows.Forms.AnchorStyles.Right)));
                this.comboBox_FileName.FormattingEnabled = true;
                this.comboBox_FileName.Location = new System.Drawing.Point(84, 32);
                this.comboBox_FileName.Name = "comboBox_FileName";
                this.comboBox_FileName.Size = new System.Drawing.Size(616, 20);
                this.comboBox_FileName.TabIndex = 47;
                // 
                // groupBox2
                // 
                this.groupBox2.Controls.Add(this.comboBox_To);
                this.groupBox2.Controls.Add(this.comboBox_From进制类型);
                this.groupBox2.Controls.Add(this.button_进制转换);
                this.groupBox2.Controls.Add(this.comboBox_From);
                this.groupBox2.Controls.Add(this.comboBox_To进制类型);
                this.groupBox2.Dock = System.Windows.Forms.DockStyle.Top;
                this.groupBox2.Location = new System.Drawing.Point(0, 262);
                this.groupBox2.Name = "groupBox2";
                this.groupBox2.Size = new System.Drawing.Size(800, 74);
                this.groupBox2.TabIndex = 6;
                this.groupBox2.TabStop = false;
                this.groupBox2.Text = "进制转换";
                // 
                // comboBox_To
                // 
                this.comboBox_To.FormattingEnabled = true;
                this.comboBox_To.Location = new System.Drawing.Point(484, 32);
                this.comboBox_To.Name = "comboBox_To";
                this.comboBox_To.Size = new System.Drawing.Size(200, 20);
                this.comboBox_To.TabIndex = 53;
                // 
                // comboBox_From进制类型
                // 
                this.comboBox_From进制类型.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
                this.comboBox_From进制类型.FormattingEnabled = true;
                this.comboBox_From进制类型.Location = new System.Drawing.Point(15, 32);
                this.comboBox_From进制类型.Name = "comboBox_From进制类型";
                this.comboBox_From进制类型.Size = new System.Drawing.Size(65, 20);
                this.comboBox_From进制类型.TabIndex = 45;
                // 
                // button_进制转换
                // 
                this.button_进制转换.Location = new System.Drawing.Point(312, 29);
                this.button_进制转换.Name = "button_进制转换";
                this.button_进制转换.Size = new System.Drawing.Size(75, 23);
                this.button_进制转换.TabIndex = 52;
                this.button_进制转换.Text = "转换";
                this.button_进制转换.UseVisualStyleBackColor = true;
                this.button_进制转换.Click += new System.EventHandler(this.button_进制转换_Click);
                // 
                // comboBox_From
                // 
                this.comboBox_From.FormattingEnabled = true;
                this.comboBox_From.Location = new System.Drawing.Point(96, 32);
                this.comboBox_From.Name = "comboBox_From";
                this.comboBox_From.Size = new System.Drawing.Size(200, 20);
                this.comboBox_From.TabIndex = 47;
                // 
                // comboBox_To进制类型
                // 
                this.comboBox_To进制类型.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
                this.comboBox_To进制类型.FormattingEnabled = true;
                this.comboBox_To进制类型.Location = new System.Drawing.Point(403, 32);
                this.comboBox_To进制类型.Name = "comboBox_To进制类型";
                this.comboBox_To进制类型.Size = new System.Drawing.Size(65, 20);
                this.comboBox_To进制类型.TabIndex = 49;
                // 
                // panel6
                // 
                this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
                this.panel6.Location = new System.Drawing.Point(0, 252);
                this.panel6.Name = "panel6";
                this.panel6.Size = new System.Drawing.Size(800, 10);
                this.panel6.TabIndex = 8;
                // 
                // groupBox1
                // 
                this.groupBox1.Controls.Add(this.button_选颜色);
                this.groupBox1.Controls.Add(this.button_转换);
                this.groupBox1.Controls.Add(this.comboBox_ColorName);
                this.groupBox1.Controls.Add(this.label4);
                this.groupBox1.Controls.Add(this.groupBox_Color);
                this.groupBox1.Controls.Add(this.label2);
                this.groupBox1.Controls.Add(this.cbb_ColorR);
                this.groupBox1.Controls.Add(this.btn_ColorConvert);
                this.groupBox1.Controls.Add(this.cbb_ColorG);
                this.groupBox1.Controls.Add(this.label1);
                this.groupBox1.Controls.Add(this.cbb_ColorResult);
                this.groupBox1.Controls.Add(this.cbb_ColorB);
                this.groupBox1.Controls.Add(this.label3);
                this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
                this.groupBox1.Location = new System.Drawing.Point(0, 133);
                this.groupBox1.Name = "groupBox1";
                this.groupBox1.Size = new System.Drawing.Size(800, 119);
                this.groupBox1.TabIndex = 4;
                this.groupBox1.TabStop = false;
                this.groupBox1.Text = "颜色转换";
                // 
                // button_选颜色
                // 
                this.button_选颜色.Location = new System.Drawing.Point(580, 72);
                this.button_选颜色.Name = "button_选颜色";
                this.button_选颜色.Size = new System.Drawing.Size(75, 23);
                this.button_选颜色.TabIndex = 57;
                this.button_选颜色.Text = "选";
                this.button_选颜色.UseVisualStyleBackColor = true;
                this.button_选颜色.Click += new System.EventHandler(this.button_选颜色_Click);
                // 
                // button_转换
                // 
                this.button_转换.Location = new System.Drawing.Point(404, 72);
                this.button_转换.Name = "button_转换";
                this.button_转换.Size = new System.Drawing.Size(75, 23);
                this.button_转换.TabIndex = 56;
                this.button_转换.Text = "转换";
                this.button_转换.UseVisualStyleBackColor = true;
                this.button_转换.Click += new System.EventHandler(this.button_转换_Click);
                // 
                // comboBox_ColorName
                // 
                this.comboBox_ColorName.FormattingEnabled = true;
                this.comboBox_ColorName.Location = new System.Drawing.Point(60, 74);
                this.comboBox_ColorName.Name = "comboBox_ColorName";
                this.comboBox_ColorName.Size = new System.Drawing.Size(306, 20);
                this.comboBox_ColorName.TabIndex = 55;
                // 
                // label4
                // 
                this.label4.AutoSize = true;
                this.label4.Location = new System.Drawing.Point(13, 77);
                this.label4.Name = "label4";
                this.label4.Size = new System.Drawing.Size(41, 12);
                this.label4.TabIndex = 54;
                this.label4.Text = "颜色:";
                this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                // 
                // groupBox_Color
                // 
                this.groupBox_Color.Controls.Add(this.panel_Color);
                this.groupBox_Color.Location = new System.Drawing.Point(685, 30);
                this.groupBox_Color.Name = "groupBox_Color";
                this.groupBox_Color.Size = new System.Drawing.Size(90, 76);
                this.groupBox_Color.TabIndex = 53;
                this.groupBox_Color.TabStop = false;
                this.groupBox_Color.Text = "颜色";
                // 
                // panel_Color
                // 
                this.panel_Color.Dock = System.Windows.Forms.DockStyle.Fill;
                this.panel_Color.Location = new System.Drawing.Point(3, 17);
                this.panel_Color.Name = "panel_Color";
                this.panel_Color.Size = new System.Drawing.Size(84, 56);
                this.panel_Color.TabIndex = 5;
                // 
                // label2
                // 
                this.label2.AutoSize = true;
                this.label2.Location = new System.Drawing.Point(31, 35);
                this.label2.Name = "label2";
                this.label2.Size = new System.Drawing.Size(23, 12);
                this.label2.TabIndex = 44;
                this.label2.Text = "R:";
                this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                // 
                // cbb_ColorR
                // 
                this.cbb_ColorR.FormattingEnabled = true;
                this.cbb_ColorR.Location = new System.Drawing.Point(60, 32);
                this.cbb_ColorR.Name = "cbb_ColorR";
                this.cbb_ColorR.Size = new System.Drawing.Size(65, 20);
                this.cbb_ColorR.TabIndex = 45;
                // 
                // btn_ColorConvert
                // 
                this.btn_ColorConvert.Location = new System.Drawing.Point(404, 30);
                this.btn_ColorConvert.Name = "btn_ColorConvert";
                this.btn_ColorConvert.Size = new System.Drawing.Size(75, 23);
                this.btn_ColorConvert.TabIndex = 52;
                this.btn_ColorConvert.Text = "转换";
                this.btn_ColorConvert.UseVisualStyleBackColor = true;
                this.btn_ColorConvert.Click += new System.EventHandler(this.btn_ColorConvert_Click);
                // 
                // cbb_ColorG
                // 
                this.cbb_ColorG.FormattingEnabled = true;
                this.cbb_ColorG.Location = new System.Drawing.Point(177, 32);
                this.cbb_ColorG.Name = "cbb_ColorG";
                this.cbb_ColorG.Size = new System.Drawing.Size(65, 20);
                this.cbb_ColorG.TabIndex = 47;
                // 
                // label1
                // 
                this.label1.AutoSize = true;
                this.label1.Location = new System.Drawing.Point(148, 35);
                this.label1.Name = "label1";
                this.label1.Size = new System.Drawing.Size(23, 12);
                this.label1.TabIndex = 46;
                this.label1.Text = "G:";
                this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                // 
                // cbb_ColorResult
                // 
                this.cbb_ColorResult.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
                this.cbb_ColorResult.FormattingEnabled = true;
                this.cbb_ColorResult.Location = new System.Drawing.Point(515, 32);
                this.cbb_ColorResult.Name = "cbb_ColorResult";
                this.cbb_ColorResult.Size = new System.Drawing.Size(140, 20);
                this.cbb_ColorResult.TabIndex = 51;
                // 
                // cbb_ColorB
                // 
                this.cbb_ColorB.FormattingEnabled = true;
                this.cbb_ColorB.Location = new System.Drawing.Point(301, 32);
                this.cbb_ColorB.Name = "cbb_ColorB";
                this.cbb_ColorB.Size = new System.Drawing.Size(65, 20);
                this.cbb_ColorB.TabIndex = 49;
                // 
                // label3
                // 
                this.label3.AutoSize = true;
                this.label3.Location = new System.Drawing.Point(272, 35);
                this.label3.Name = "label3";
                this.label3.Size = new System.Drawing.Size(23, 12);
                this.label3.TabIndex = 48;
                this.label3.Text = "B:";
                this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                // 
                // panel4
                // 
                this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
                this.panel4.Location = new System.Drawing.Point(0, 123);
                this.panel4.Name = "panel4";
                this.panel4.Size = new System.Drawing.Size(800, 10);
                this.panel4.TabIndex = 7;
                // 
                // groupBox_常用按钮
                // 
                this.groupBox_常用按钮.Controls.Add(this.button_打开下载目录);
                this.groupBox_常用按钮.Controls.Add(this.button_打开host文件目录);
                this.groupBox_常用按钮.Controls.Add(this.button_打开计算器);
                this.groupBox_常用按钮.Controls.Add(this.button_打开画图);
                this.groupBox_常用按钮.Controls.Add(this.button_打开注册表);
                this.groupBox_常用按钮.Controls.Add(this.button_打开策略组);
                this.groupBox_常用按钮.Controls.Add(this.button_打开控制面板);
                this.groupBox_常用按钮.Controls.Add(this.button_打开管理工具);
                this.groupBox_常用按钮.Controls.Add(this.button_打开服务);
                this.groupBox_常用按钮.Controls.Add(this.button_打开记事本);
                this.groupBox_常用按钮.Dock = System.Windows.Forms.DockStyle.Top;
                this.groupBox_常用按钮.Location = new System.Drawing.Point(0, 0);
                this.groupBox_常用按钮.Name = "groupBox_常用按钮";
                this.groupBox_常用按钮.Size = new System.Drawing.Size(800, 123);
                this.groupBox_常用按钮.TabIndex = 0;
                this.groupBox_常用按钮.TabStop = false;
                this.groupBox_常用按钮.Text = "常用按钮";
                // 
                // button_打开下载目录
                // 
                this.button_打开下载目录.Location = new System.Drawing.Point(503, 84);
                this.button_打开下载目录.Name = "button_打开下载目录";
                this.button_打开下载目录.Size = new System.Drawing.Size(130, 23);
                this.button_打开下载目录.TabIndex = 16;
                this.button_打开下载目录.Text = "打开下载目录";
                this.button_打开下载目录.UseVisualStyleBackColor = true;
                this.button_打开下载目录.Click += new System.EventHandler(this.button_打开下载目录_Click);
                // 
                // button_打开host文件目录
                // 
                this.button_打开host文件目录.Location = new System.Drawing.Point(503, 30);
                this.button_打开host文件目录.Name = "button_打开host文件目录";
                this.button_打开host文件目录.Size = new System.Drawing.Size(130, 23);
                this.button_打开host文件目录.TabIndex = 15;
                this.button_打开host文件目录.Text = "打开host文件目录";
                this.button_打开host文件目录.UseVisualStyleBackColor = true;
                this.button_打开host文件目录.Click += new System.EventHandler(this.button_打开host文件目录_Click);
                // 
                // button_打开计算器
                // 
                this.button_打开计算器.Location = new System.Drawing.Point(384, 84);
                this.button_打开计算器.Name = "button_打开计算器";
                this.button_打开计算器.Size = new System.Drawing.Size(95, 23);
                this.button_打开计算器.TabIndex = 14;
                this.button_打开计算器.Text = "打开计算器";
                this.button_打开计算器.UseVisualStyleBackColor = true;
                this.button_打开计算器.Click += new System.EventHandler(this.button_打开计算器_Click);
                // 
                // button_打开画图
                // 
                this.button_打开画图.Location = new System.Drawing.Point(253, 84);
                this.button_打开画图.Name = "button_打开画图";
                this.button_打开画图.Size = new System.Drawing.Size(95, 23);
                this.button_打开画图.TabIndex = 13;
                this.button_打开画图.Text = "打开画图";
                this.button_打开画图.UseVisualStyleBackColor = true;
                this.button_打开画图.Click += new System.EventHandler(this.button_打开画图_Click);
                // 
                // button_打开注册表
                // 
                this.button_打开注册表.Location = new System.Drawing.Point(124, 84);
                this.button_打开注册表.Name = "button_打开注册表";
                this.button_打开注册表.Size = new System.Drawing.Size(95, 23);
                this.button_打开注册表.TabIndex = 12;
                this.button_打开注册表.Text = "打开注册表";
                this.button_打开注册表.UseVisualStyleBackColor = true;
                this.button_打开注册表.Click += new System.EventHandler(this.button_打开注册表_Click);
                // 
                // button_打开策略组
                // 
                this.button_打开策略组.Location = new System.Drawing.Point(384, 30);
                this.button_打开策略组.Name = "button_打开策略组";
                this.button_打开策略组.Size = new System.Drawing.Size(95, 23);
                this.button_打开策略组.TabIndex = 11;
                this.button_打开策略组.Text = "打开策略组";
                this.button_打开策略组.UseVisualStyleBackColor = true;
                this.button_打开策略组.Click += new System.EventHandler(this.button_打开策略组_Click);
                // 
                // button_打开控制面板
                // 
                this.button_打开控制面板.Location = new System.Drawing.Point(253, 30);
                this.button_打开控制面板.Name = "button_打开控制面板";
                this.button_打开控制面板.Size = new System.Drawing.Size(95, 23);
                this.button_打开控制面板.TabIndex = 10;
                this.button_打开控制面板.Text = "打开控制面板";
                this.button_打开控制面板.UseVisualStyleBackColor = true;
                this.button_打开控制面板.Click += new System.EventHandler(this.button_打开控制面板_Click);
                // 
                // button_打开管理工具
                // 
                this.button_打开管理工具.Location = new System.Drawing.Point(124, 30);
                this.button_打开管理工具.Name = "button_打开管理工具";
                this.button_打开管理工具.Size = new System.Drawing.Size(95, 23);
                this.button_打开管理工具.TabIndex = 9;
                this.button_打开管理工具.Text = "打开管理工具";
                this.button_打开管理工具.UseVisualStyleBackColor = true;
                this.button_打开管理工具.Click += new System.EventHandler(this.button_打开管理工具_Click);
                // 
                // button_打开服务
                // 
                this.button_打开服务.Location = new System.Drawing.Point(23, 30);
                this.button_打开服务.Name = "button_打开服务";
                this.button_打开服务.Size = new System.Drawing.Size(75, 23);
                this.button_打开服务.TabIndex = 8;
                this.button_打开服务.Text = "打开服务";
                this.button_打开服务.UseVisualStyleBackColor = true;
                this.button_打开服务.Click += new System.EventHandler(this.button_打开服务_Click);
                // 
                // button_打开记事本
                // 
                this.button_打开记事本.Location = new System.Drawing.Point(23, 84);
                this.button_打开记事本.Name = "button_打开记事本";
                this.button_打开记事本.Size = new System.Drawing.Size(75, 23);
                this.button_打开记事本.TabIndex = 7;
                this.button_打开记事本.Text = "打开记事本";
                this.button_打开记事本.UseVisualStyleBackColor = true;
                this.button_打开记事本.Click += new System.EventHandler(this.button_打开记事本_Click);
                // 
                // toolStrip1
                // 
                this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.toolStripDropDownButton_Title,
                this.toolStripSeparator1,
                this.toolStripButton_粘贴复制的文件完整路径});
                this.toolStrip1.Location = new System.Drawing.Point(0, 0);
                this.toolStrip1.Name = "toolStrip1";
                this.toolStrip1.Size = new System.Drawing.Size(820, 25);
                this.toolStrip1.TabIndex = 5;
                this.toolStrip1.Text = "toolStrip1";
                // 
                // panel1
                // 
                this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
                this.panel1.Location = new System.Drawing.Point(0, 25);
                this.panel1.Name = "panel1";
                this.panel1.Size = new System.Drawing.Size(10, 520);
                this.panel1.TabIndex = 6;
                // 
                // panel2
                // 
                this.panel2.Dock = System.Windows.Forms.DockStyle.Right;
                this.panel2.Location = new System.Drawing.Point(810, 25);
                this.panel2.Name = "panel2";
                this.panel2.Size = new System.Drawing.Size(10, 520);
                this.panel2.TabIndex = 7;
                // 
                // toolStripSeparator1
                // 
                this.toolStripSeparator1.Name = "toolStripSeparator1";
                this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25);
                // 
                // toolStripDropDownButton_Title
                // 
                this.toolStripDropDownButton_Title.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.刷新ToolStripMenuItem,
                this.关闭ToolStripMenuItem,
                this.关闭所有ToolStripMenuItem,
                this.除此之外全部关闭ToolStripMenuItem});
                this.toolStripDropDownButton_Title.Image = global::SlowX.ToolOperApp.Properties.Resources.application_form;
                this.toolStripDropDownButton_Title.ImageTransparentColor = System.Drawing.Color.Magenta;
                this.toolStripDropDownButton_Title.Name = "toolStripDropDownButton_Title";
                this.toolStripDropDownButton_Title.Size = new System.Drawing.Size(61, 22);
                this.toolStripDropDownButton_Title.Text = "菜单";
                // 
                // 刷新ToolStripMenuItem
                // 
                this.刷新ToolStripMenuItem.Image = global::SlowX.ToolOperApp.Properties.Resources.table_refresh;
                this.刷新ToolStripMenuItem.Name = "刷新ToolStripMenuItem";
                this.刷新ToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
                this.刷新ToolStripMenuItem.Text = "刷新";
                this.刷新ToolStripMenuItem.Click += new System.EventHandler(this.刷新ToolStripMenuItem_Click);
                // 
                // 关闭ToolStripMenuItem
                // 
                this.关闭ToolStripMenuItem.Image = global::SlowX.ToolOperApp.Properties.Resources.application_form_delete;
                this.关闭ToolStripMenuItem.Name = "关闭ToolStripMenuItem";
                this.关闭ToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
                this.关闭ToolStripMenuItem.Text = "关闭";
                this.关闭ToolStripMenuItem.Click += new System.EventHandler(this.关闭ToolStripMenuItem_Click);
                // 
                // 关闭所有ToolStripMenuItem
                // 
                this.关闭所有ToolStripMenuItem.Image = global::SlowX.ToolOperApp.Properties.Resources.world_delete;
                this.关闭所有ToolStripMenuItem.Name = "关闭所有ToolStripMenuItem";
                this.关闭所有ToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
                this.关闭所有ToolStripMenuItem.Text = "关闭所有";
                this.关闭所有ToolStripMenuItem.Click += new System.EventHandler(this.关闭所有ToolStripMenuItem_Click);
                // 
                // 除此之外全部关闭ToolStripMenuItem
                // 
                this.除此之外全部关闭ToolStripMenuItem.Image = global::SlowX.ToolOperApp.Properties.Resources.application_form_add;
                this.除此之外全部关闭ToolStripMenuItem.Name = "除此之外全部关闭ToolStripMenuItem";
                this.除此之外全部关闭ToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
                this.除此之外全部关闭ToolStripMenuItem.Text = "除此之外全部关闭";
                this.除此之外全部关闭ToolStripMenuItem.Click += new System.EventHandler(this.除此之外全部关闭ToolStripMenuItem_Click);
                // 
                // toolStripButton_粘贴复制的文件完整路径
                // 
                this.toolStripButton_粘贴复制的文件完整路径.Image = global::SlowX.ToolOperApp.Properties.Resources.paste_plain;
                this.toolStripButton_粘贴复制的文件完整路径.ImageTransparentColor = System.Drawing.Color.Magenta;
                this.toolStripButton_粘贴复制的文件完整路径.Name = "toolStripButton_粘贴复制的文件完整路径";
                this.toolStripButton_粘贴复制的文件完整路径.Size = new System.Drawing.Size(160, 22);
                this.toolStripButton_粘贴复制的文件完整路径.Text = "粘贴复制的文件完整路径";
                this.toolStripButton_粘贴复制的文件完整路径.Click += new System.EventHandler(this.toolStripButton_粘贴复制的文件完整路径_Click);
                // 
                // MainList
                // 
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.Controls.Add(this.panel5);
                this.Controls.Add(this.panel2);
                this.Controls.Add(this.panel1);
                this.Controls.Add(this.toolStrip1);
                this.Name = "MainList";
                this.Size = new System.Drawing.Size(820, 545);
                this.panel5.ResumeLayout(false);
                this.groupBox3.ResumeLayout(false);
                this.groupBox3.PerformLayout();
                this.groupBox2.ResumeLayout(false);
                this.groupBox1.ResumeLayout(false);
                this.groupBox1.PerformLayout();
                this.groupBox_Color.ResumeLayout(false);
                this.groupBox_常用按钮.ResumeLayout(false);
                this.toolStrip1.ResumeLayout(false);
                this.toolStrip1.PerformLayout();
                this.ResumeLayout(false);
                this.PerformLayout();
    
            }
    
            #endregion
    
            private System.Windows.Forms.Panel panel5;
            private System.Windows.Forms.GroupBox groupBox_常用按钮;
            private System.Windows.Forms.Button button_打开画图;
            private System.Windows.Forms.Button button_打开注册表;
            private System.Windows.Forms.Button button_打开策略组;
            private System.Windows.Forms.Button button_打开控制面板;
            private System.Windows.Forms.Button button_打开管理工具;
            private System.Windows.Forms.Button button_打开服务;
            private System.Windows.Forms.Button button_打开记事本;
            private System.Windows.Forms.GroupBox groupBox1;
            private System.Windows.Forms.Label label2;
            private System.Windows.Forms.ComboBox cbb_ColorR;
            private System.Windows.Forms.Button btn_ColorConvert;
            private System.Windows.Forms.ComboBox cbb_ColorG;
            private System.Windows.Forms.Label label1;
            private System.Windows.Forms.ComboBox cbb_ColorResult;
            private System.Windows.Forms.ComboBox cbb_ColorB;
            private System.Windows.Forms.Label label3;
            private System.Windows.Forms.GroupBox groupBox_Color;
            private System.Windows.Forms.Panel panel_Color;
            private System.Windows.Forms.Label label4;
            private System.Windows.Forms.ComboBox comboBox_ColorName;
            private System.Windows.Forms.Button button_转换;
            private System.Windows.Forms.Button button_打开计算器;
            private System.Windows.Forms.GroupBox groupBox2;
            private System.Windows.Forms.ComboBox comboBox_To;
            private System.Windows.Forms.ComboBox comboBox_From进制类型;
            private System.Windows.Forms.Button button_进制转换;
            private System.Windows.Forms.ComboBox comboBox_From;
            private System.Windows.Forms.ComboBox comboBox_To进制类型;
            private System.Windows.Forms.Button button_选颜色;
            private System.Windows.Forms.Panel panel4;
            private System.Windows.Forms.ToolStrip toolStrip1;
            private System.Windows.Forms.Panel panel1;
            private System.Windows.Forms.Panel panel2;
            private System.Windows.Forms.Panel panel6;
            private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton_Title;
            private System.Windows.Forms.ToolStripMenuItem 刷新ToolStripMenuItem;
            private System.Windows.Forms.ToolStripMenuItem 关闭ToolStripMenuItem;
            private System.Windows.Forms.ToolStripMenuItem 关闭所有ToolStripMenuItem;
            private System.Windows.Forms.ToolStripMenuItem 除此之外全部关闭ToolStripMenuItem;
            private System.Windows.Forms.Button button_打开host文件目录;
            private System.Windows.Forms.Button button_打开下载目录;
            private System.Windows.Forms.GroupBox groupBox3;
            private System.Windows.Forms.Button button_自动适配;
            private System.Windows.Forms.Label label5;
            private System.Windows.Forms.ComboBox comboBox_FileName;
            private System.Windows.Forms.Button button_notepad打开;
            private System.Windows.Forms.Button button_打开目录;
            private System.Windows.Forms.Button button_Uedit打开;
            private System.Windows.Forms.Button button_VS2012;
            private System.Windows.Forms.Button button_VS2010;
            private System.Windows.Forms.Button button_VS2008;
            private System.Windows.Forms.Button button_缺省打开;
            private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
            private System.Windows.Forms.ToolStripButton toolStripButton_粘贴复制的文件完整路径;
    
        }
    }
    
    

标签:常用工具    桌面软件    二进制转换    颜色编码转换 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)