public MainForm() { InitializeComponent(); ProcessMenuItemsForPlugin(); MouseWheel += (sender, e) => HomePageTab.Focus(); currentOptions = Options.Load(); Text = string.Format("{0} (v{1})", Text, Assembly.GetExecutingAssembly().GetName().Version); ManageConnectionControl(); }
public MainForm(string[] args) { if (args.Length > 0) { this.initialConnectionName = ExtractSwitchValue("/connection:", ref args); this.initialPluginName = ExtractSwitchValue("/plugin:", ref args); } InitializeComponent(); ProcessMenuItemsForPlugin(); MouseWheel += (sender, e) => HomePageTab.Focus(); currentOptions = Options.Load(); Text = string.Format("{0} (v{1})", Text, Assembly.GetExecutingAssembly().GetName().Version); ManageConnectionControl(); }
public MainForm(string[] args) { SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); if (args.Length > 0) { this.initialConnectionName = ExtractSwitchValue("/connection:", ref args); this.initialPluginName = ExtractSwitchValue("/plugin:", ref args); } InitializeComponent(); pluginsModels = new List <PluginModel>(); pluginControlStatuses = new List <PluginControlStatus>(); ProcessMenuItemsForPlugin(); MouseWheel += (sender, e) => HomePageTab.Focus(); currentOptions = Options.Load(); Text = string.Format("{0} (v{1})", Text, Assembly.GetExecutingAssembly().GetName().Version); ManageConnectionControl(); }