private void closeWindowButton_Click(object sender, RoutedEventArgs e) { mainGrid.Opacity = 0.2; ConfirmationScreen confirmationScreen = new ConfirmationScreen(0); confirmationScreen.Owner = this; confirmationScreen.ShowDialog(); if (DialogResult == true) { mainGrid.Opacity = 1; } else { mainGrid.Opacity = 1; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.confirmationScreen = ((WeSplit.ConfirmationScreen)(target)); #line 19 "..\..\ConfirmationScreen.xaml" this.confirmationScreen.Loaded += new System.Windows.RoutedEventHandler(this.confirmationScreen_Loaded); #line default #line hidden return; case 2: this.textBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.noButton = ((System.Windows.Controls.Button)(target)); #line 36 "..\..\ConfirmationScreen.xaml" this.noButton.Click += new System.Windows.RoutedEventHandler(this.noButton_Click); #line default #line hidden return; case 4: this.yesButton = ((System.Windows.Controls.Button)(target)); #line 39 "..\..\ConfirmationScreen.xaml" this.yesButton.Click += new System.Windows.RoutedEventHandler(this.yesButton_Click); #line default #line hidden return; } this._contentLoaded = true; }