void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.settingsScreen = ((WeSplit.SettingsScreen)(target)); #line 18 "..\..\SettingsScreen.xaml" this.settingsScreen.Loaded += new System.Windows.RoutedEventHandler(this.settingsScreen_Loaded); #line default #line hidden return; case 2: this.settingsGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.closeUserButton = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\SettingsScreen.xaml" this.closeUserButton.Click += new System.Windows.RoutedEventHandler(this.closeUserButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void settingsButton_Click(object sender, RoutedEventArgs e) { mainGrid.Opacity = 0.2; SettingsScreen settingsScreen = new SettingsScreen(); settingsScreen.Owner = this; settingsScreen.ShowDialog(); if (DialogResult == true) { mainGrid.Opacity = 1; } else { mainGrid.Opacity = 1; } }