Ejemplo n.º 1
0
        public FlyServer(
            Form formMain,
            FlowLayoutPanel panel,
            ToolStripLabel lbMarkFilter,
            ToolStripComboBox cboxMarkeFilter,
            ToolStripStatusLabel tslbTotal,
            ToolStripDropDownButton tsdbtnPager,
            ToolStripStatusLabel tslbPrePage,
            ToolStripStatusLabel tslbNextPage)
        {
            this.servers = Service.Servers.Instance;
            this.setting = Service.Setting.Instance;

            this.formMain       = formMain;
            this.flyPanel       = panel;
            this.cboxMarkFilter = cboxMarkeFilter;
            this.tsdbtnPager    = tsdbtnPager;
            this.tslbTotal      = tslbTotal;
            this.tslbPrePage    = tslbPrePage;
            this.tslbNextPage   = tslbNextPage;
            this.welcomeItem    = new Views.UserControls.WelcomeUI();

            InitFormControls(lbMarkFilter);
            BindDragDropEvent();
            RefreshUI();
            servers.OnRequireFlyPanelUpdate  += OnRequireFlyPanelUpdateHandler;
            servers.OnRequireFlyPanelReload  += OnRequireFlyPanelReloadHandler;
            servers.OnRequireStatusBarUpdate += OnRequireStatusBarUpdateHandler;
        }
Ejemplo n.º 2
0
        public FlyServer(
            Form formMain,
            FlowLayoutPanel panel,
            ToolStripLabel lbMarkFilter,
            ToolStripComboBox cboxMarkeFilter,
            ToolStripStatusLabel tslbTotal,
            ToolStripDropDownButton tsdbtnPager,
            ToolStripStatusLabel tslbPrePage,
            ToolStripStatusLabel tslbNextPage,
            ToolStripMenuItem miResizeFormMain)
        {
            servers = Services.Servers.Instance;
            setting = Services.Settings.Instance;

            this.formMain       = formMain;
            this.flyPanel       = panel;
            this.cboxMarkFilter = cboxMarkeFilter;
            this.tsdbtnPager    = tsdbtnPager;
            this.tslbTotal      = tslbTotal;
            this.tslbPrePage    = tslbPrePage;
            this.tslbNextPage   = tslbNextPage;

            this.welcomeItem = new Views.UserControls.WelcomeUI();

            lazyStatusBarUpdater      = new VgcApis.Libs.Tasks.LazyGuy(UpdateStatusBarNow, 300);
            lazySearchResultDisplayer = new VgcApis.Libs.Tasks.LazyGuy(ShowSearchResultNow, 1000);
            lazyUiRefresher           = new VgcApis.Libs.Tasks.LazyGuy(() => RefreshUI(), 300);

            InitFormControls(lbMarkFilter, miResizeFormMain);
            BindDragDropEvent();
            RefreshUI();
            WatchServers();
        }
Ejemplo n.º 3
0
        public FlyServer(
            Form formMain,
            FlowLayoutPanel panel,
            ToolStripLabel lbMarkFilter,
            ToolStripComboBox cboxMarkeFilter,
            ToolStripStatusLabel tslbTotal,
            ToolStripDropDownButton tsdbtnPager,
            ToolStripStatusLabel tslbPrePage,
            ToolStripStatusLabel tslbNextPage,
            ToolStripMenuItem miResizeFormMain)
        {
            servers = Services.Servers.Instance;
            setting = Services.Settings.Instance;

            this.formMain       = formMain;
            this.flyPanel       = panel;
            this.cboxMarkFilter = cboxMarkeFilter;
            this.tsdbtnPager    = tsdbtnPager;
            this.tslbTotal      = tslbTotal;
            this.tslbPrePage    = tslbPrePage;
            this.tslbNextPage   = tslbNextPage;

            this.welcomeItem = new Views.UserControls.WelcomeUI();

            lazyFlyPanelUpdater = new VgcApis.Libs.Tasks.LazyGuy(
                RefreshFlyPanelWorker, flyPanelUpdateInterval, 2000)
            {
                Name = "FormMain.RefreshFlyPanelWorker()",
            };

            lazyStatusBarUpdater = new VgcApis.Libs.Tasks.LazyGuy(
                UpdateStatusBarWorker, statusBarUpdateInterval, 3000)
            {
                Name = "FormMain.UpdateStatusBarWorker()", // disable debug logging
            };

            lazySearchResultDisplayer = new VgcApis.Libs.Tasks.LazyGuy(
                ShowSearchResultNow, 1300, 1000)
            {
                Name = "FormMain.ShowSearchResultNow()",
            };

            InitFormControls(lbMarkFilter, miResizeFormMain);
            BindDragDropEvent();
            RefreshFlyPanelLater();
            WatchServers();
        }