Exemplo n.º 1
0
        /*public void RemoveLastControl()
         * {
         *  if (LastControl.IsNull())
         *      return;
         *  frmMain.panelMain.Controls.Remove(LastControl);
         * }
         *
         * public void AddWatcherOptionsControl()
         * {
         *  if (ctlWatcherOptions.IsNull())
         *  {
         *      ctlWatcherOptions = new u_WatcherOptions();
         *      ctlWatcherOptions.Name = "ctlWatcherOptionsMain";
         *      ctlWatcherOptions.Dock = DockStyle.Fill;
         *  }
         *  RemoveLastControl();
         *  ctlWatcherOptions.UIFactory = this;
         *  frmMain.panelMain.Controls.Add(ctlWatcherOptions);
         *  LastControl = ctlWatcherOptions;
         *  frmMain.panelMain.Refresh();
         * }*/

        internal void GetServiceStats()
        {
            frmMain.barEditItemInstalled.EditValue = watcherFactory.ServiceInstalled;
            if (watcherFactory.ServiceInstalled)
            {
                frmMain.barEditItemRunning.EditValue = watcherFactory.IsServiceRunning();
                frmMain.barEditItemPaused.EditValue  = watcherFactory.IsServicePaused();
            }
        }