Esempio n. 1
0
 public Ren(BatCommand command)
     : base(command)
 {
     InitializeComponent();
     textBox1_TextChanged(null, null);
     Comment = command.CommandDiscription;
 }
Esempio n. 2
0
 public Ftype(BatCommand command)
     : base(command)
 {
     InitializeComponent();
     radioButton1_CheckedChanged(null, null);
     Comment = command.CommandDiscription;
 }
Esempio n. 3
0
 public Label(BatCommand command)
     : base(command)
 {
     InitializeComponent();
     Comment = Command.CommandDiscription;
     maskedTextBox1_TextChanged(null, null);
 }
Esempio n. 4
0
 public Format(BatCommand command)
     : base(command)
 {
     InitializeComponent();
     checkBox2_CheckedChanged(null, null);
     Comment = command.CommandDiscription;
 }
Esempio n. 5
0
 public Move(BatCommand command)
     : base(command)
 {
     InitializeComponent();
     Comment = Command.CommandDiscription;
     textBox2_TextChanged(null, null);
 }
Esempio n. 6
0
 public Shift(BatCommand command)
     : base(command)
 {
     InitializeComponent();
     numericUpDown1_ValueChanged(null, null);
     Comment = command.CommandDiscription;
 }
Esempio n. 7
0
        public Path(BatCommand command)
            : base(command)
        {
            InitializeComponent();

            radioButton1_CheckedChanged(null, null);
        }
Esempio n. 8
0
 public GpResult(BatCommand command)
     : base(command)
 {
     InitializeComponent();
     checkBox3_CheckedChanged(null, null);
     Comment        = Command.CommandDiscription;
     comboBox1.Text = "USER";
 }
Esempio n. 9
0
        public Chcp(BatCommand command)
            : base(command)
        {
            InitializeComponent();

            pageCodes.Tables.Add("code");
            pageCodes.Tables["code"].Columns.Add("key", typeof(int));
            pageCodes.Tables["code"].Columns.Add("showText", typeof(string));
        }
Esempio n. 10
0
 private static void CreateCmd0Node(TreeNode commandsParent, BatCommand command)
 {
     commandsParent.Nodes.Add(new TreeNode
     {
         Text        = command.CommandName,
         ToolTipText = command.CommandDiscription,
         Tag         = command
     });
 }
Esempio n. 11
0
        private void InitializePrograme()
        {
            _currentSetting = new Settings();

            //设置高亮模式
            textEditorControl1.Document.HighlightingStrategy = ICSharpCode.TextEditor.Document.HighlightingStrategyFactory.CreateHighlightingStrategy("BAT");
            //textEditorControl1.Encoding = System.Text.Encoding.Default;
            textEditorControl1.Encoding = System.Text.Encoding.ASCII;
            //获取全部内部命令
            _allComaandList = BatCommand.GetInternalCommand();
            //绑定到列表显示命令清单
            FilterCommands(null, null);


            //默认显示边栏、标尺和行号
            ShowRule       = bool.Parse(_currentSetting.GetConfigValue(Settings.ConfigItem.显示标尺));
            ShowLineNumber = bool.Parse(_currentSetting.GetConfigValue(Settings.ConfigItem.显示行号));
            ShowLeftBar    = bool.Parse(_currentSetting.GetConfigValue(Settings.ConfigItem.显示侧边栏));
            ShowLine80     = bool.Parse(_currentSetting.GetConfigValue(Settings.ConfigItem.显示字宽符));

            Font f = new Font(_currentSetting.GetConfigValue(Settings.ConfigItem.字体),
                              float.Parse(_currentSetting.GetConfigValue(Settings.ConfigItem.字号)));

            fontDialog1.Font = textEditorControl1.Font = f;



            //勾选文本发生改变事件
            textEditorControl1.ActiveTextAreaControl.SelectionManager.SelectionChanged += 中文本发生改变;

            //初始没有运行
            IsRuning = false;

            //有操作被加入到撤销/重做队列中时
            textEditorControl1.Document.UndoStack.OperationPushed += 撤消状态改变;

            CheckForIllegalCrossThreadCalls = false;
        }
Esempio n. 12
0
        public Graftabl(BatCommand command)
            : base(command)
        {
            InitializeComponent();

            pageCodes.Tables.Add("code");
            pageCodes.Tables["code"].Columns.Add("key", typeof(int));
            pageCodes.Tables["code"].Columns.Add("showText", typeof(string));

            radioButton1_CheckedChanged(null, null);

            foreach (EncodingInfo ei in Encoding.GetEncodings())
            {
                Encoding temp   = ei.GetEncoding();
                DataRow  newRow = pageCodes.Tables["code"].NewRow();
                newRow["key"]      = temp.CodePage;
                newRow["showText"] = string.Format("标准页代码{0,-6}{1,-20}(windows页代码{2})", temp.CodePage, ei.Name, temp.WindowsCodePage);
                pageCodes.Tables["code"].Rows.Add(newRow);
            }

            comboBox1.DataSource    = pageCodes.Tables["code"];
            comboBox1.ValueMember   = "key";
            comboBox1.DisplayMember = "showText";
        }
Esempio n. 13
0
 public DefaultCommandSetter(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 14
0
 public DiskComp(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 15
0
 public ChkNTFS(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 16
0
 public Bootcfg(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 17
0
 public Compact(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 18
0
 public Echo(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 19
0
 public Driverquery(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 20
0
 public Break(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 21
0
 public DosKey(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 22
0
 public Attrib(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }
Esempio n. 23
0
 /// <summary>
 /// 构造一个Assos命令行配置器对话窗
 /// </summary>
 /// <param name="command">传入的命令</param>
 public Assoc(BatCommand command)
     : base(command)
 {
     InitializeComponent();
 }