コード例 #1
0
        private void Tasks_ItemClick(object sender, ItemClickEventArgs e)
        {
            ServiceTask activeTask = (ServiceTask)e.ClickedItem;

            StaffControler.SetActiveTasks(activeTask);

            this.Frame.Navigate(typeof(TaskPage));
        }
コード例 #2
0
 public TaskPage()
 {
     this.InitializeComponent();
     activeTask  = StaffControler.GetActiveTask();
     Header.Text = "Room nr: " + activeTask.RoomNr;
     SetStatusOnButtons(activeTask.Status);
     Notes.ItemsSource = activeTask.Notes;
 }
コード例 #3
0
 public TaskList()
 {
     this.InitializeComponent();
     Header.Text = MainPage.state;
     TaskSource  = StaffControler.GetTasks(MainPage.state);
 }
コード例 #4
0
 private void DoneButton_Click(object sender, RoutedEventArgs e)
 {
     StaffControler.UpdateTask(activeTask, NewNote.Text);
     StaffControler.GetAllTasksFromTheWeb();
     this.Frame.Navigate(typeof(TaskList));
 }
コード例 #5
0
 public MainPage()
 {
     this.InitializeComponent();
     StaffControler.GetAllTasksFromTheWeb();
 }