public Form1() { InitializeComponent(); ReadSettings(); // tasks ChangeCurrentTask(null); _tasks = new ObservableTaskCollection(); _tasks.Read(); _tasks.CurrentTaskChanged += new EventHandler(_tasks_CurrentTaskChanged); _tasks_CurrentTaskChanged(null, null); UpdateViewSize(_currentViewSize); this.Left = Screen.PrimaryScreen.WorkingArea.Width - this.Width - 4; this.Top = Screen.PrimaryScreen.WorkingArea.Top + 26; StartTimer(); UpdateUI(); this.TopMost = true; _startBackColor = this.BackColor; _startForeColor = Color.Black; StartContinousTesting(); }
public FormTaskList(ObservableTaskCollection tasks) { InitializeComponent(); _tasks = tasks; _tasks.Changed += new EventHandler(_tasks_Changed); listView1.View = View.Details; listView1.Columns.Add("Description", 210); listView1.Columns.Add("Dome", 60); UpdateTasks(); }
public FormAddTask(ObservableTaskCollection tasks) : this() { this._tasks = tasks; }