private void eventList_DoubleClick(object sender, System.EventArgs e) { var selected = eventList.SelectedItems; if (selected.Count != 0) { var task = (Task)selected[0].Tag; TaskDetails details = new TaskDetails(task.Id); details.Show(); } }
private void BtnUpdateTask_Click(object sender, System.EventArgs e) { _task.Data.Details = rctDetails.Text; _task.Data.Notes = rctNotes.Text; AppHelper.ValidationHandling(() => { var result = _taskService.Update(_task.Data); var form = AppHelper.GetCurrentForm <MainForm>(); TaskDetails taskDetails = new TaskDetails(_taskId); this.Close(); form.LoadData(); taskDetails.Show(); }); }