void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ErrorOcurred1 = ((WebCM.pages.mbx.ErrorOcurred)(target)); #line 9 "..\..\..\..\..\pages\mbx\ErrorOcurred.xaml" this.ErrorOcurred1.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.label = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.close = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\..\..\..\pages\mbx\ErrorOcurred.xaml" this.close.Click += new System.Windows.RoutedEventHandler(this.close_Click); #line default #line hidden return; } this._contentLoaded = true; }
private UserControl getPopUp(Menu menu) { UserControl result; switch (menu) { case Menu.PIN: result = new PIN(); break; case Menu.credit: result = new credit(); break; case Menu.saldo: result = new saldo(); break; case Menu.NotFound: result = new NotFound(); break; case Menu.ErrorOcurred: result = new ErrorOcurred(); break; case Menu.Save: result = new Save(); break; case Menu.person: result = new person(); break; case Menu.PersonAssigned: result = new user(); break; default: result = popUp; break; } return result; }