Esempio n. 1
0
        private Controller.FormMainCtrl InitFormMainCtrl()
        {
            var ctrl = new Controller.FormMainCtrl();

            ctrl.Plug(new Controller.FormMainComponent.FlyServer(
                          flyServerListContainer,
                          cboxMarkFilter,
                          tboxFlySearcher));

            ctrl.Plug(new Controller.FormMainComponent.MenuItemsBasic(
                          toolMenuItemSimAddVmessServer,
                          toolMenuItemImportLinkFromClipboard,
                          toolMenuItemExportAllServerToFile,
                          toolMenuItemImportFromFile,
                          toolMenuItemCheckUpdate,
                          toolMenuItemAbout,
                          toolMenuItemHelp,
                          toolMenuItemConfigEditor,
                          toolMenuItemQRCode,
                          toolMenuItemLog,
                          toolMenuItemOptions,
                          toolStripMenuItemDownLoadV2rayCore,
                          toolStripMenuItemRemoveV2rayCore));

            ctrl.Plug(new Controller.FormMainComponent.MenuItemsSelect(
                          selectAllToolStripMenuItem,
                          selectNoneToolStripMenuItem,
                          selectInvertToolStripMenuItem,
                          selectAutorunToolStripMenuItem,
                          selectRunningToolStripMenuItem,
                          selectTimeoutToolStripMenuItem,
                          selectNoSpeedTestToolStripMenuItem));

            ctrl.Plug(new Controller.FormMainComponent.MenuItemsServer(
                          toolStripMenuItemStopSelected,
                          toolStripMenuItemRestartSelected,
                          toolMenuItemClearSysProxy,
                          toolMenuItemRefreshSummary,
                          toolStripMenuItemSpeedTestOnSelected,
                          toolStripMenuItemDeleteSelectedServers,
                          toolStripMenuItemCopyAsV2rayLink,
                          toolStripMenuItemCopyAsVmessLink,
                          toolStripMenuItemCopyAsSubscription,
                          toolStripMenuItemDeleteAllServer,
                          toolStripMenuItemModifySettings,
                          toolStripMenuItemPackSelectedServers,
                          toolStripMenuItemMoveToTop,
                          toolStripMenuItemMoveToBottom,
                          toolStripMenuItemCollapsePanel,
                          toolStripMenuItemExpansePanel,
                          toolStripMenuItemSortBySpeedTest,
                          toolStripMenuItemSortBySummary));

            return(ctrl);
        }
Esempio n. 2
0
        private Controller.FormMainCtrl InitFormMainCtrl()
        {
            var ctrl = new Controller.FormMainCtrl();

            ctrl.Plug(new Controller.FormMainComponent.FlyServer(
                          flyServerListContainer));

            ctrl.Plug(new Controller.FormMainComponent.MenuItems(
                          toolMenuItemSimAddVmessServer,
                          toolMenuItemImportLinkFromClipboard,
                          toolMenuItemExportAllServerToFile,
                          toolMenuItemImportFromFile,
                          toolMenuItemCheckUpdate,
                          toolMenuItemAbout,
                          toolMenuItemHelp,
                          toolMenuItemConfigEditor,
                          toolMenuItemQRCode,
                          toolMenuItemLog,
                          toolMenuItemOptions,
                          toolStripMenuItemDownLoadV2rayCore,
                          toolStripMenuItemRemoveV2rayCore));

            ctrl.Plug(new Controller.FormMainComponent.ServerMenuItems(
                          toolStripMenuItemStopSelected,
                          toolStripMenuItemRestartSelected,
                          toolMenuItemClearSysProxy,
                          toolMenuItemRefreshSummary,
                          toolMenuItemSelectAutorunServers,
                          toolStripMenuItemSelectAll,
                          toolStripMenuItemSelectNone,
                          toolStripMenuItemSelectInvert,
                          toolStripMenuItemSpeedTestOnSelected,
                          toolStripMenuItemDeleteSelectedServers,
                          toolStripMenuItemCopyAsV2rayLink,
                          toolStripMenuItemCopyAsVmessLink,
                          toolStripMenuItemCopyAsSubscription,
                          toolStripMenuItemDeleteAllServer));

            return(ctrl);
        }
Esempio n. 3
0
        private Controller.FormMainCtrl InitFormMainCtrl()
        {
            var ctrl = new Controller.FormMainCtrl();

            ctrl.Plug(new Controller.FormMainComponent.FlyServer(
                          this,
                          flyServerListContainer,
                          toolStripLabelMarkFilter,
                          toolStripComboBoxMarkFilter,
                          toolStripStatusLabelTotal,
                          toolStripDropDownButtonPager,
                          toolStripStatusLabelPrePage,
                          toolStripStatusLabelNextPage,
                          toolStripMenuItemResize));

            ctrl.Plug(new Controller.FormMainComponent.MenuItemsBasic(
                          toolMenuItemSimAddVmessServer,
                          toolMenuItemImportLinkFromClipboard,
                          toolMenuItemExportAllServerToFile,
                          toolMenuItemImportFromFile,
                          toolMenuItemAbout,
                          toolMenuItemHelp,
                          toolMenuItemConfigEditor,
                          toolMenuItemQRCode,
                          toolMenuItemLog,
                          toolMenuItemOptions,
                          toolStripMenuItemDownLoadV2rayCore,
                          toolStripMenuItemRemoveV2rayCore,
                          toolMenuItemCheckUpdate));

            ctrl.Plug(new Controller.FormMainComponent.MenuItemsSelect(

                          /*
                           * ToolStripMenuItem selectAllCurPage,
                           * ToolStripMenuItem invertSelectionCurPage,
                           * ToolStripMenuItem selectNoneCurPage,
                           */
                          selectAllCurPageToolStripMenuItem,
                          invertSelectionCurPageToolStripMenuItem,
                          selectNoneCurPageToolStripMenuItem1,

                          /*
                           * ToolStripMenuItem selectAllAllPages,
                           * ToolStripMenuItem invertSelectionAllPages,
                           * ToolStripMenuItem selectNoneAllPages,
                           */
                          selectAllAllPagesToolStripMenuItem,
                          invertSelectionAllPagesToolStripMenuItem,
                          selectNoneAllPagesToolStripMenuItem,

                          /*
                           * ToolStripMenuItem selectAutorunAllPages,
                           * ToolStripMenuItem selectNoMarkAllPages,
                           * ToolStripMenuItem selectNoSpeedTestAllPages,
                           * ToolStripMenuItem selectRunningAllPages,
                           * ToolStripMenuItem selectTimeoutAllPages,
                           * ToolStripMenuItem selectUntrackAllPages,
                           */
                          selectAutorunAllPagesToolStripMenuItem,
                          selectNoMarkAllPagesToolStripMenuItem,
                          selectNoSpeedTestAllPagesToolStripMenuItem,
                          selectRunningAllPagesToolStripMenuItem,
                          selectTimeoutAllPagesToolStripMenuItem,
                          selectUntrackAllPagesToolStripMenuItem,

                          /*
                           * ToolStripMenuItem selectAllAllServers,
                           * ToolStripMenuItem invertSelectionAllServers,
                           * ToolStripMenuItem selectNoneAllServers,
                           */
                          selectAllAllServersToolStripMenuItem,
                          invertSelectionAllServersToolStripMenuItem,
                          selectNoneAllServersToolStripMenuItem,

                          /*
                           * ToolStripMenuItem selectAutorunAllServers,
                           * ToolStripMenuItem selectNoMarkAllServers,
                           * ToolStripMenuItem selectNoSpeedTestAllServers,
                           * ToolStripMenuItem selectRunningAllServers,
                           * ToolStripMenuItem selectTimeoutAllServers,
                           * ToolStripMenuItem selectUntrackAllServers,
                           */
                          selectAutorunAllServersToolStripMenuItem,
                          selectNoMarkAllServersToolStripMenuItem,
                          selectNoSpeedTestAllServersToolStripMenuItem,
                          selectRunningAllServersToolStripMenuItem,
                          selectTimeoutAllServersToolStripMenuItem,
                          selectUntrackAllServersToolStripMenuItem));

            ctrl.Plug(new Controller.FormMainComponent.MenuItemsServer(
                          // for invoke ui refresh
                          //MenuStrip menuContainer,
                          mainMneuStrip,

                          //// misc
                          //ToolStripMenuItem refreshSummary,
                          //ToolStripMenuItem deleteAllServers,
                          //ToolStripMenuItem deleteSelected,
                          refreshSummaryToolStripMenuItem,
                          deleteAllServersToolStripMenuItem,
                          deleteSelectedServersToolStripMenuItem,

                          //// copy
                          //ToolStripMenuItem copyAsV2cfgLinks,
                          //ToolStripMenuItem copyAsVmessLinks,
                          //ToolStripMenuItem copyAsSubscriptions,
                          toolStripMenuItemCopyAsV2cfgLink,
                          toolStripMenuItemCopyAsVmessLink,
                          toolStripMenuItemCopyAsVeeLink,
                          toolStripMenuItemCopyAsVmessSubscription,
                          toolStripMenuItemCopyAsVeeSubscription,

                          //// batch op
                          //ToolStripMenuItem speedTestOnSelected,
                          //ToolStripMenuItem modifySelected,
                          //ToolStripMenuItem stopSelected,
                          //ToolStripMenuItem restartSelected,
                          toolStripMenuItemSpeedTestOnSelected,
                          toolStripMenuItemModifySettings,
                          toolStripMenuItemStopSelected,
                          toolStripMenuItemRestartSelected,

                          //// view
                          //ToolStripMenuItem moveToTop,
                          //ToolStripMenuItem moveToBottom,
                          //ToolStripMenuItem foldPanel,
                          //ToolStripMenuItem expansePanel,
                          //ToolStripMenuItem sortBySpeed,
                          //ToolStripMenuItem sortBySummary)
                          toolStripMenuItemMoveToTop,
                          toolStripMenuItemMoveToBottom,
                          toolStripMenuItemFoldingPanel,
                          toolStripMenuItemExpansePanel,
                          toolStripMenuItemSortBySpeedTest,
                          toolStripMenuItemSortBySummary));

            return(ctrl);
        }