Esempio n. 1
0
        /// <summary>
        /// ObjectListView double click event.
        /// </summary>
        private void objectListView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            EditForm editForm = new EditForm();

            editForm.mainForm = this;
            editForm.currentTask = (Task)objectListView.SelectedItem.RowObject;

            editForm.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// Add task click event.
        /// </summary>
        private void addTaskToolStripButton_Click(object sender, EventArgs e)
        {
            EditForm addForm = new EditForm();

            addForm.mainForm = this;
            addForm.addMode = true;
            addForm.lineNumber = oTaskCollection.GetLastLineNumber() +1;

            addForm.Show();
        }