void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.settingWindow = ((WpfApp1.SettingWindow)(target)); #line 8 "..\..\SettingWindow.xaml" this.settingWindow.Closing += new System.ComponentModel.CancelEventHandler(this.ClosingSettingWindow); #line default #line hidden return; case 2: this.volume = ((System.Windows.Controls.Slider)(target)); return; case 3: this.speed = ((System.Windows.Controls.Slider)(target)); return; case 4: this.voice = ((System.Windows.Controls.ComboBox)(target)); return; } this._contentLoaded = true; }
//点击设置 public void SettingClick(object sender, RoutedEventArgs e) { VerificationWindow vf = new VerificationWindow(this); vf.ShowDialog(); if (vf.Result) { SettingWindow setWnd = new SettingWindow(); setWnd.ShowDialog(); Close(); } else { } }
private void OpenSettingsButton_Click(object sender, RoutedEventArgs e) { SettingWindow win2 = new SettingWindow(); win2.ShowDialog(); }