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(); } }
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(); } } }
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(); } }
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(); } } }