private void FormPluginMain_Shown(object sender, System.EventArgs e) { this.Text = string.Format( "{0} v{1}", Properties.Resources.Name, Properties.Resources.Version); formVGCPluginCtrl = CreateFormCtrl(); UpdateSysProxyInfo(null, EventArgs.Empty); StartUpdateTimer(); }
Controllers.FormVGCPluginCtrl CreateFormCtrl() { var ctrl = new Controllers.FormVGCPluginCtrl(); ctrl.Plug(new Controllers.VGCPluginComponents.TabUsage( linkLabelUsageTxthinkingPac, tboxUsageReadMe)); ctrl.Plug(new Controllers.VGCPluginComponents.TabStatus( setting, pacServer, lbBasicCurPacServerStatus, lbBasicProxyLink, btnBasicStartPacServer, btnBasicStopPacServer, btnBasicViewInNotepad, btnBasicDebugPacServer, btnBaiscCopyProxyLink, btnBasicClearSysProxy)); ctrl.Plug(new Controllers.VGCPluginComponents.TabBasicSetting( setting, servTracker, cboxBasicPacProtocol, cboxBasicSysProxyMode, tboxBasicGlobalPort, tboxBaiscPacPort, cboxBasicPacMode, tboxBasicCustomPacPath, chkBasicAutoUpdateSysProxy, chkBasicPacAlwaysOn, chkBasicUseCustomPac, btnBasicBrowseCustomPac, // hotkey chkBasicUseHotkey, chkBasicUseAlt, chkBasicUseShift, tboxBasicHotkey)); ctrl.Plug(new Controllers.VGCPluginComponents.TabPacCustomList( setting, rtboxPacWhiteList, rtboxPacBlackList, btnSetSortWhitelist, btnSetSortBlacklist)); return(ctrl); }
Controllers.FormVGCPluginCtrl CreateFormCtrl() { var ctrl = new Controllers.FormVGCPluginCtrl(); ctrl.Plug(new Controllers.VGCPluginComponents.TabStatus( vgcUtils, setting, pacServer, lbBasicCurPacServerStatus, lbBasicProxyLink, btnBasicStartPacServer, btnBasicStopPacServer, btnBasicDebugPacServer, btnBaiscCopyProxyLink, btnBasicClearSysProxy)); ctrl.Plug(new Controllers.VGCPluginComponents.TabBasicSetting( vgcUtils, setting, servTracker, cboxBasicPacProtocol, cboxBasicSysProxyMode, tboxBasicGlobalPort, tboxBaiscPacPort, cboxBasicPacMode, tboxBasicCustomPacPath, chkBasicAutoUpdateSysProxy, chkBasicPacAlwaysOn, chkBasicUseCustomPac, btnBasicBrowseCustomPac)); ctrl.Plug(new Controllers.VGCPluginComponents.TabPacCustomList( setting, rtboxPacWhiteList, rtboxPacBlackList)); return(ctrl); }