Ejemplo n.º 1
0
        public Statusbar(StatusController.Controller.StatusController controller)
        {
            this.RightToLeft = View.LayoutDirection;
            this.RenderMode  = ToolStripRenderMode.ManagerRenderMode;
            this.AutoSize    = false;
            this.Dock        = System.Windows.Forms.DockStyle.Bottom;

            this.asyncHelper  = new AsyncCalls();
            this.currentState = StatusTypes.Info;

            if (Presentation.View.Theme != null)
            {
                this.BackColor = Presentation.View.Theme.ToolBarBackColor;
                this.ForeColor = Presentation.View.Theme.ToolBarForeColor;
                this.Font      = Presentation.View.Theme.FormLabelFont;
            }
            else
            {
                this.ForeColor = Color.Black;
                this.Font      = new Font("Tahoma", 9, FontStyle.Bold);
            }

            SetupLabel();

            LoadImages();
            LoadColors();
            SetupTimer();

            controller.RegisterForEvents(this);

            this.asyncHelper = new AsyncCalls();
        }
Ejemplo n.º 2
0
        public ApplicationStatus(StatusController.Controller.StatusController statusController)
        {
            this.StatusController = statusController;

            this.readyState = new StatusController.Entities.StatusInfo(
                0, 0, StatusTypes.None, 0, null, "");

            this.lastStatusUpdate = DateTime.Now;
            this.timer            = new System.Timers.Timer(10000);
            this.timer.Elapsed   += new System.Timers.ElapsedEventHandler(timer_Elapsed);
            this.timer.Start();
        }