Inheritance: System.EventArgs
Ejemplo n.º 1
0
        public virtual void OnProcessCommand(CommandWindowEventArgs e)
        {
            var handler = ProcessCommand;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
 public virtual void OnProcessCommand(CommandWindowEventArgs e)
 {
     var handler = ProcessCommand;
     if (handler != null)
         handler(this, e);
 }
Ejemplo n.º 3
0
 private void fileswitcher_ProcessCommand(object sender, CommandWindowEventArgs e)
 {
     foreach (DockContent content in dock.Documents)
     {
         if (content.Text == e.Text)
         {
             content.Show(dock);
         }
     }
 }
Ejemplo n.º 4
0
 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();
         }
     }
 }
Ejemplo n.º 5
0
 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);
         }
     }
 }
Ejemplo n.º 6
0
 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;
         }
     }
 }
Ejemplo n.º 7
0
 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();
 }