Ejemplo n.º 1
0
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     if (tabWeekylist.IsSelected)
     {
         goalForm = new GoalForm(weekyList);
         goalForm.ShowDialog();
     }
     else
     {
         todoForm = new TodoForm(todoList);
         todoForm.ShowDialog();
     }
 }
Ejemplo n.º 2
0
 private void tvWeekylist_Item_Selected(object sender, RoutedEventArgs e)
 {
     if (btnEdit.IsChecked == true)
     {
         dynamic data = sender;
         BussinessObject.Entities.Task task = data.SelectedItem;
         if (task.SuperTask == -1)
         {
             goalForm = new GoalForm(task, weekyList);
             goalForm.ShowDialog();
         }
         else
         {
             taskForm = new TaskForm(task, weekyList);
             taskForm.ShowDialog();
             SetWeeky();
         }
         //todoForm.ShowDialog();
     }
 }