public void LoadTestData(List <Slot> input) { Global.InputSlotList.AddRange(input); MainFrame.Navigate( Page_CreateTimetable.GetInstance(Global.Settings.SearchByConsideringWeekNumber, Global.Settings.GeneralizeSlot)); }
private void SettingButton_OnClick(object sender, RoutedEventArgs e) { var p = Windows_Settings.GetInstance(); p.ShowDialog(); if (p.ApplyClicked == false) { return; } MainFrame.Navigate(Page_CreateTimetable.GetInstance(Global.Settings.SearchByConsideringWeekNumber, Global.Settings.GeneralizeSlot)); }
private void LoadSlots_OnClick(object sender, RoutedEventArgs e) { var dialog = new OpenFileDialog(); dialog.Filter = "TTAP file (*.ttap)|*.ttap"; if (dialog.ShowDialog() == true) { var os = new ObjectSerializer(); Global.InputSlotList = os.DeSerializeObject <SlotList>(dialog.FileName); MainFrame.Navigate(Page_CreateTimetable.GetInstance(Global.Settings.SearchByConsideringWeekNumber, Global.Settings.GeneralizeSlot)); } }
private void SettingButton_OnClick(object sender, RoutedEventArgs e) { var p = Windows_Settings.GetInstance(); p.ShowDialog(); if (p.ApplyClicked == false) { return; } Global.Snackbar.MessageQueue.Enqueue("Settings applied."); if (Global.InputSlotList.Count == 0) { return; } MainFrame.Navigate(Page_CreateTimetable.GetInstance(Global.Settings.SearchByConsideringWeekNumber, Global.Settings.GeneralizeSlot)); }