示例#1
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     if (this.dataGridTasks.SelectedItem != null)
     {
         Birko.TimeTracker.Entities.Task task = (this.dataGridTasks.SelectedItem as Birko.TimeTracker.Entities.Task);
         TaskWindow window = new TaskWindow();
         window.Task = task;
         if (this.tracker.ActiveTask != null)
         {
             window.Tags = this.tracker.Tasks.GetTags(task);
         }
         window.Tracker = this.tracker;
         window.Owner = this;
         window.Show();
     }
 }
示例#2
0
 private void newTaskMenuItem_Click(object sender, RoutedEventArgs e)
 {
     TaskWindow window = new TaskWindow();
     window.Tracker = this.tracker;
     window.Owner = this;
     window.Show();
 }