private void AddTask() { using (frmManageTask form = new frmManageTask()) { if (form.Execute()) { RebindDataSources(); } } }
private void ModifySelectedTask() { using (frmManageTask form = new frmManageTask()) { if (form.Execute(lvTasks.SelectedValue as TaskModel)) { RebindDataSources(); } } }