public Ren(BatCommand command) : base(command) { InitializeComponent(); textBox1_TextChanged(null, null); Comment = command.CommandDiscription; }
public Ftype(BatCommand command) : base(command) { InitializeComponent(); radioButton1_CheckedChanged(null, null); Comment = command.CommandDiscription; }
public Label(BatCommand command) : base(command) { InitializeComponent(); Comment = Command.CommandDiscription; maskedTextBox1_TextChanged(null, null); }
public Format(BatCommand command) : base(command) { InitializeComponent(); checkBox2_CheckedChanged(null, null); Comment = command.CommandDiscription; }
public Move(BatCommand command) : base(command) { InitializeComponent(); Comment = Command.CommandDiscription; textBox2_TextChanged(null, null); }
public Shift(BatCommand command) : base(command) { InitializeComponent(); numericUpDown1_ValueChanged(null, null); Comment = command.CommandDiscription; }
public Path(BatCommand command) : base(command) { InitializeComponent(); radioButton1_CheckedChanged(null, null); }
public GpResult(BatCommand command) : base(command) { InitializeComponent(); checkBox3_CheckedChanged(null, null); Comment = Command.CommandDiscription; comboBox1.Text = "USER"; }
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)); }
private static void CreateCmd0Node(TreeNode commandsParent, BatCommand command) { commandsParent.Nodes.Add(new TreeNode { Text = command.CommandName, ToolTipText = command.CommandDiscription, Tag = command }); }
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; }
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"; }
public DefaultCommandSetter(BatCommand command) : base(command) { InitializeComponent(); }
public DiskComp(BatCommand command) : base(command) { InitializeComponent(); }
public ChkNTFS(BatCommand command) : base(command) { InitializeComponent(); }
public Bootcfg(BatCommand command) : base(command) { InitializeComponent(); }
public Compact(BatCommand command) : base(command) { InitializeComponent(); }
public Echo(BatCommand command) : base(command) { InitializeComponent(); }
public Driverquery(BatCommand command) : base(command) { InitializeComponent(); }
public Break(BatCommand command) : base(command) { InitializeComponent(); }
public DosKey(BatCommand command) : base(command) { InitializeComponent(); }
public Attrib(BatCommand command) : base(command) { InitializeComponent(); }
/// <summary> /// 构造一个Assos命令行配置器对话窗 /// </summary> /// <param name="command">传入的命令</param> public Assoc(BatCommand command) : base(command) { InitializeComponent(); }