private void queryUndo(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { e.Enabled = this.textBox1.CanUndo; }
private void queryPaste(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { e.Enabled = Clipboard.GetDataObject().GetDataPresent(DataFormats.Text); }
private void cmdWindowCloseAll_CommandStateQuery(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { e.Enabled = tabMain.TabPages.Count > 0; }
private void queryCopy(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { e.Enabled = this.textBox1.SelectionLength > 0; }
private void cmdFileSave_CommandStateQuery(object sender, C1.Win.C1Command.CommandStateQueryEventArgs e) { Editor ed = SelectedEditor(); e.Enabled = ed != null && ed.Dirty; }