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