private void Window_Loaded(object sender, RoutedEventArgs e) { if (File.Exists(@"./SaveDefaultPath.txt")) { initLoded = true; initSuccess = true; defaultPath = File.ReadAllText(@"./SaveDefaultPath.txt"); //run(); Refresh(defaultPath); } else { SettingView settingView = new SettingView(this); settingView.ShowDialog(); } }
private void settingBtn_Click(object sender, RoutedEventArgs e) { SettingView settingView = new SettingView(this); this.Opacity = 0.3; settingView.ShowDialog(); }