Example #1
0
 private void DoRedirect_CheckedChange(object sender, CompoundButton.CheckedChangeEventArgs e)
 {
     if (e.IsChecked)
     {
         TrainInfoReader.SetRedirect(new InternalSavedDataReader());
     }
     else
     {
         TrainInfoReader.ClearRedirect();
     }
 }
Example #2
0
 private void DoRedirectCheckBox_Checked(object sender, RoutedEventArgs e)
 {
     if (Directory.Exists(redirectFolder))
     {
         TrainInfoReader.SetRedirect(new SaveFileReader(redirectFolder));
     }
     else
     {
         MessageBox.Show("リダイレクト元フォルダが存在しません");
         DoRedirectCheckBox.IsChecked = false;
     }
 }
Example #3
0
 public Window1()
 {
     TrainInfoReader.SetRedirect(new TrainInfo.Debuggers.InternalSavedDataReader());
     InitializeComponent();
 }