private void originalBalanceButton_Click(object sender, RoutedEventArgs e) { Popup editOriginalBalance = new Popup("Edit Original Balance", "New Original Balance:", "Original Balance"); editOriginalBalance.ShowDialog(); this.controller.updateView(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PopupWindow = ((Basic_Financial_Tracker.Popup)(target)); return; case 2: this.popupLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.popupTextBox = ((System.Windows.Controls.TextBox)(target)); #line 17 "..\..\Popup.xaml" this.popupTextBox.GotFocus += new System.Windows.RoutedEventHandler(this.popupTextBox_GotFocus); #line default #line hidden #line 17 "..\..\Popup.xaml" this.popupTextBox.LostFocus += new System.Windows.RoutedEventHandler(this.popupTextBox_LostFocus); #line default #line hidden #line 17 "..\..\Popup.xaml" this.popupTextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.popupTextBox_PreviewTextInput); #line default #line hidden #line 17 "..\..\Popup.xaml" this.popupTextBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.popupTextBox_KeyDown); #line default #line hidden return; case 4: this.aPopupButton = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\Popup.xaml" this.aPopupButton.Click += new System.Windows.RoutedEventHandler(this.aPopupButton_Click); #line default #line hidden return; case 5: this.bPopupButton = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\Popup.xaml" this.bPopupButton.Click += new System.Windows.RoutedEventHandler(this.bPopupButton_Click); #line default #line hidden return; } this._contentLoaded = true; }