Exemplo n.º 1
0
 private void ShowTaskForm(TaskForm taskForm)
 {
     taskForm.StartPosition = FormStartPosition.CenterParent;
     System.Windows.Forms.DialogResult resultant = taskForm.ShowDialog();
     while (resultant == System.Windows.Forms.DialogResult.Retry)
     {
         resultant = taskForm.ShowDialog();
     }
 }
Exemplo n.º 2
0
        private void cmdAddTask_Click(object sender, EventArgs e)
        {
            listSelectedIndex = listBox1.SelectedIndex;

            if (listSelectedIndex >= 0)
            {
                List list = allLists[listSelectedIndex];

                TaskForm taskForm = new TaskForm(list);

                ShowTaskForm(taskForm);

                GetData();
            }
        }
Exemplo n.º 3
0
        private void cmdAddTask_Click(object sender, EventArgs e)
        {
            listSelectedIndex = listBox1.SelectedIndex;

            if (listSelectedIndex >= 0)
            {
                List list = allLists[listSelectedIndex];

                TaskForm taskForm = new TaskForm(list);

                ShowTaskForm(taskForm);

                GetData();
            }
        }
Exemplo n.º 4
0
        private void cmdViewTaskDetails_Click(object sender, EventArgs e)
        {
            taskSelectedIndex = taskBox.SelectedIndex;

            if (taskSelectedIndex >= 0)
            {
                Task task = tasks[taskSelectedIndex];

                TaskForm taskForm = new TaskForm(task);
                taskForm.StartPosition = FormStartPosition.CenterParent;
                if (taskForm.ShowDialog() == DialogResult.OK)
                {
                    GetData();
                }
            }
        }
Exemplo n.º 5
0
 private void ShowTaskForm(TaskForm taskForm)
 {
     taskForm.StartPosition = FormStartPosition.CenterParent;
     System.Windows.Forms.DialogResult resultant = taskForm.ShowDialog();
     while (resultant == System.Windows.Forms.DialogResult.Retry)
     {
         resultant = taskForm.ShowDialog();
     }
 }
Exemplo n.º 6
0
        private void cmdViewTaskDetails_Click(object sender, EventArgs e)
        {
            taskSelectedIndex = taskBox.SelectedIndex;

            if (taskSelectedIndex >= 0)
            {
                Task task = tasks[taskSelectedIndex];

                TaskForm taskForm = new TaskForm(task);
                taskForm.StartPosition = FormStartPosition.CenterParent;
                if (taskForm.ShowDialog() == DialogResult.OK)
                {
                    GetData();
                }
            }
        }