private void Tasks_ItemClick(object sender, ItemClickEventArgs e) { ServiceTask activeTask = (ServiceTask)e.ClickedItem; StaffControler.SetActiveTasks(activeTask); this.Frame.Navigate(typeof(TaskPage)); }
public TaskPage() { this.InitializeComponent(); activeTask = StaffControler.GetActiveTask(); Header.Text = "Room nr: " + activeTask.RoomNr; SetStatusOnButtons(activeTask.Status); Notes.ItemsSource = activeTask.Notes; }
public TaskList() { this.InitializeComponent(); Header.Text = MainPage.state; TaskSource = StaffControler.GetTasks(MainPage.state); }
private void DoneButton_Click(object sender, RoutedEventArgs e) { StaffControler.UpdateTask(activeTask, NewNote.Text); StaffControler.GetAllTasksFromTheWeb(); this.Frame.Navigate(typeof(TaskList)); }
public MainPage() { this.InitializeComponent(); StaffControler.GetAllTasksFromTheWeb(); }