예제 #1
0
 private UITools()
 {
     showDetails = PluginBase.Settings.ShowDetails;
     //
     // CONTROLS
     //
     try
     {
         CompletionList.CreateControl(PluginBase.MainForm);
         codeTip   = new CodeTip(PluginBase.MainForm);
         simpleTip = new RichToolTip(PluginBase.MainForm);
         callTip   = new MethodCallTip(PluginBase.MainForm);
         errorTip  = new RichToolTip(PluginBase.MainForm);
     }
     catch (Exception ex)
     {
         ErrorManager.ShowError(/*"Error while creating editor controls.",*/ ex);
     }
     //
     // Events
     //
     PluginBase.MainForm.IgnoredKeys.Add(Keys.Space | Keys.Control);              // complete member
     PluginBase.MainForm.IgnoredKeys.Add(Keys.Space | Keys.Control | Keys.Shift); // complete method
     PluginBase.MainForm.DockPanel.ActivePaneChanged += new EventHandler(DockPanel_ActivePaneChanged);
     EventManager.AddEventHandler(this, eventMask);
 }
예제 #2
0
 private UITools()
 {
     showDetails = PluginBase.Settings.ShowDetails;
     //
     // CONTROLS
     //
     try
     {
         CompletionList.CreateControl(PluginBase.MainForm);
         simpleTip = new RichToolTip(PluginBase.MainForm);
         callTip = new MethodCallTip(PluginBase.MainForm);
     }
     catch(Exception ex)
     {
         ErrorManager.ShowError(/*"Error while creating editor controls.",*/ ex);
     }
     //
     // Events
     //
     PluginBase.MainForm.IgnoredKeys.Add(Keys.Space | Keys.Control); // complete member
     PluginBase.MainForm.IgnoredKeys.Add(Keys.Space | Keys.Control | Keys.Shift); // complete method
     PluginBase.MainForm.DockPanel.ActivePaneChanged += new EventHandler(DockPanel_ActivePaneChanged);
     EventManager.AddEventHandler(this, eventMask);
 }