Exemple #1
0
 public FormModifyServerSettings()
 {
     InitializeComponent();
     VgcApis.Misc.UI.AutoSetFormIcon(this);
     servers = Services.Servers.Instance;
 }
        public MenuItemsServer(

            // misc
            ToolStripMenuItem refreshSummary,
            ToolStripMenuItem deleteAllServers,
            ToolStripMenuItem deleteSelected,

            // copy
            ToolStripMenuItem copyAsV2cfgLinks,
            ToolStripMenuItem copyAsVmixLinks,
            ToolStripMenuItem copyAsVeeLinks,
            ToolStripMenuItem copyAsVmessSubscriptions,
            ToolStripMenuItem copyAsVeeSubscriptions,

            // batch op
            ToolStripMenuItem stopBatchSpeedtest,
            ToolStripMenuItem runBatchSpeedtest,
            ToolStripMenuItem clearSpeedtestResults,
            ToolStripMenuItem clearStatisticRecord,

            ToolStripMenuItem modifySelected,
            ToolStripMenuItem stopSelected,
            ToolStripMenuItem restartSelected,

            // view
            ToolStripMenuItem moveToTop,
            ToolStripMenuItem moveToBottom,

            ToolStripMenuItem reverseByIndex,
            ToolStripMenuItem sortBySpeed,
            ToolStripMenuItem sortByDate,
            ToolStripMenuItem sortBySummary,
            ToolStripMenuItem sortByDownloadTotal,
            ToolStripMenuItem sortByUploadTotal)
        {
            cache    = Services.Cache.Instance;
            servers  = Services.Servers.Instance;
            slinkMgr = Services.ShareLinkMgr.Instance;
            settings = Services.Settings.Instance;

            InitCtrlSorting(
                reverseByIndex,
                sortBySpeed, sortByDate, sortBySummary,
                sortByDownloadTotal, sortByUploadTotal);

            InitCtrlView(moveToTop, moveToBottom);

            InitCtrlCopyToClipboard(
                copyAsV2cfgLinks,
                copyAsVmixLinks,
                copyAsVeeLinks,
                copyAsVmessSubscriptions,
                copyAsVeeSubscriptions);

            InitCtrlMisc(
                refreshSummary,
                deleteSelected,
                deleteAllServers);

            InitCtrlBatchOperation(
                stopSelected,
                restartSelected,

                runBatchSpeedtest,
                stopBatchSpeedtest,
                clearSpeedtestResults,
                clearStatisticRecord,

                modifySelected);
        }
Exemple #3
0
 public FormConfigerCtrl()
 {
     servers = Services.Servers.Instance;
     config  = ParseConfigString(null);
 }