//ADD NEW TASK private void btnAddTask_Click(object sender, RoutedEventArgs e) { NewTask w = new NewTask(); w.idUserLogged = userId; w.Show(); }
//EDIT TASK private void btnEditTask_Click(object sender, RoutedEventArgs e) { NewTask w = new NewTask(); w.idUserLogged = userId; w.Title = "Edit Task"; w.getData_Task(selectedTask); w.Show(); }