/// <summary> /// ウィンドウが開いたとき /// </summary> private void WindowLoaded(object sender, RoutedEventArgs e) { // タスクトレイのアイコン設定 TaskTrayIcon.Icon = Properties.Resources.Icon; // 設定画面を開く var settingWindow = new SettingWindow(this); settingWindow.ShowDialog(); }
/// <summary> /// 設定画面を開く /// </summary> private void OpenSettingWindow_Click(object sender, EventArgs e) { var window = new SettingWindow(this); window.ShowDialog(); }
public APIKeySettingwindow(MainWindow main, SettingWindow settingWindow) { InitializeComponent(); this.main = main; this.settingWindow = settingWindow; }