/// <summary> /// The only valid constructor /// </summary> /// <param name="pManager">This is mandantory</param> public RunningForm(RunningControl pManager) { log.Debug("Initialize new RunningForm"); this.Manager = pManager; InitializeComponent(); #if DEBUG this.eyesNotifyIcon.Text += " [DEBUG] "; this.Text += " [DEBUG] "; SetDebugProperties(); #endif this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width; this.Top = Screen.PrimaryScreen.WorkingArea.Height - this.Height; Manager.SecondTick += new EventHandler(Manager_SecondTick); Manager.BreakingStarted += new EventHandler(Manager_BreakingStarted); Manager.BreakingTerminated += new EventHandler(Manager_BreakingTerminated); Manager_BreakingTerminated(this, null); }
/// <summary> /// The only valid constructor /// </summary> /// <param name="pManager">This is mandantory</param> public RunningForm(RunningControl pManager) { log.Debug("Initialize new RunningForm"); this.Manager = pManager; InitializeComponent(); #if DEBUG this.eyesNotifyIcon.Text += " [DEBUG] "; this.Text += " [DEBUG] "; SetDebugProperties(); #endif this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width; this.Top = Screen.PrimaryScreen.WorkingArea.Height - this.Height; Manager.SecondTick += new EventHandler(Manager_SecondTick); Manager.BreakingStarted += new EventHandler(Manager_BreakingStarted); Manager.BreakingTerminated += new EventHandler(Manager_BreakingTerminated); Manager_BreakingTerminated(this, null); }
public BreakingForm(RunningControl pManager) { log.Debug("Initialize new BreakingForm."); this.Manager = pManager; InitializeComponent(); #if DEBUG this.FormBorderStyle = FormBorderStyle.Sizable; #endif this.Text = AssemblyInfo.Product + " " + AssemblyInfo.Version; turnMonitorToolStripMenuItem.ShortcutKeys = Settings.Default.ShutdownMonitorHotkey; breakingSpanBar.Properties.Maximum = Manager.PlannedSeconds; breakingSpanBar.Position = Manager.PendingSeconds; Manager.SecondTick += new EventHandler(Manager_SecondTick); Manager.BreakingTerminating += new EventHandler(Manager_BreakingTerminating); Manager.BreakingDelaying += new EventHandler(Manager_BreakingDelaying); }
public BreakingForm(RunningControl pManager) { log.Debug("Initialize new BreakingForm."); this.Manager = pManager; InitializeComponent(); #if DEBUG this.FormBorderStyle = FormBorderStyle.Sizable; #endif this.Text = AssemblyInfo.Product + " " + AssemblyInfo.Version; turnMonitorToolStripMenuItem.ShortcutKeys = Settings.Default.ShutdownMonitorHotkey; breakingSpanBar.Properties.Maximum = Manager.PlannedSeconds; breakingSpanBar.Position = Manager.PendingSeconds; Manager.SecondTick += new EventHandler(Manager_SecondTick); Manager.BreakingTerminating += new EventHandler(Manager_BreakingTerminating); Manager.BreakingDelaying += new EventHandler(Manager_BreakingDelaying); }