Ejemplo n.º 1
0
 /// <summary>
 /// Creates global replace dialog
 /// </summary>
 /// <param name="main"></param>
 public Refactor(Main main)
 {
     M = main;
     E = M.CurrentEditor;
     InitializeComponent();
     Width = Symbol.Width + Rename.Width + 4;
     if (E != null) {
         PreviewKeyDown += Refactor_PreviewKeyDown;
         Symbol.KeyDown += Symbol_KeyDown;
         GetSymbol();
         Symbol.Focus();
     } else Dispose();
 }
Ejemplo n.º 2
0
 public Main(string[] args)
 {
     InitializeComponent();
     SuspendLayout();
     (new VS2012ToolStripExtender { VS2012Renderer = new VS2012ToolStripRenderer() }).SetEnableVS2012Style(MainMenu, true);
     Status.Main = this;
     EditorFile.Main = this;
     ProjectPanel.Main = this;
     SearchResultsPanel.Main = this;
     StatusLabel.Text = Messages.Ready;
     if (args.Length > 0) FileToOpen = args[0];
     Instance = this;
     ResumeLayout();
 }