private void btnAdd_Click(object sender, EventArgs e) { AddTaskDialog addTask = new AddTaskDialog(user); addTask.Show(); addTask.FormClosed += (obj, form) => refreshTaskData(); }
private void btnEditNote_Click(object sender, EventArgs e) { foreach (ListViewItem item in noteListView.Items) { AddTaskDialog addTaskDialog = new AddTaskDialog(user, notebook, noteDTO.getById(item.Text)); addTaskDialog.Show(); } }
private void btnAddNote_Click(object sender, EventArgs e) { AddTaskDialog addTaskDialog = new AddTaskDialog(user, notebook); addTaskDialog.Show(); }