public virtual void OnProcessCommand(CommandWindowEventArgs e) { var handler = ProcessCommand; if (handler != null) { handler(this, e); } }
public virtual void OnProcessCommand(CommandWindowEventArgs e) { var handler = ProcessCommand; if (handler != null) handler(this, e); }
private void fileswitcher_ProcessCommand(object sender, CommandWindowEventArgs e) { foreach (DockContent content in dock.Documents) { if (content.Text == e.Text) { content.Show(dock); } } }
private void cwin_ProcessCommand(object sender, CommandWindowEventArgs e) { foreach (var item in (sender as CommandWindow).Tag as IEnumerable<AutocompleteItem>) { if (item.Text == e.Text) { ActiveEditor.Tb.SelectionStart = (int) (item.Tag); ActiveEditor.Tb.DoSelectionVisible(); } } }
private void cwindow_ProcessCommand(object sender, CommandWindowEventArgs e) { foreach (MenuItem item in miopenrecent.MenuItems) { if (item.Text == e.Text) { var proj = YnoteProject.Load(item.Name); OpenProject(proj); } } }
private void commandwindow_ProcessCommand(object sender, CommandWindowEventArgs e) { var files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories); foreach (var file in files) { if (Path.GetFileName(file) == e.Text) { OpenFile(file); return; } } }
private void bookmarkwindow_ProcessCommand(object sender, CommandWindowEventArgs e) { var markCommand = YnoteCommand.FromString(e.Text); int index = markCommand.Key.ToInt() - 1; foreach (var bookmark in ActiveEditor.Tb.Bookmarks) if (bookmark.LineIndex == index) bookmark.DoVisible(); }