示例#1
0
        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();
        }
示例#3
0
 public FormAddTask(ObservableTaskCollection tasks) : this()
 {
     this._tasks = tasks;
 }