Beispiel #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.credit1 = ((WebCM.pages.mbx.credit)(target));
     
     #line 14 "..\..\..\..\pages\mbx\credit.xaml"
     this.credit1.Loaded += new System.Windows.RoutedEventHandler(this.credit1_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.label = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.border = ((System.Windows.Controls.Border)(target));
     return;
     case 4:
     this.creditAmount = ((System.Windows.Controls.TextBox)(target));
     
     #line 20 "..\..\..\..\pages\mbx\credit.xaml"
     this.creditAmount.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.creditAmount_PreviewKeyUp);
     
     #line default
     #line hidden
     return;
     case 5:
     this.border2 = ((System.Windows.Controls.Border)(target));
     return;
     case 6:
     this.save = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\..\..\pages\mbx\credit.xaml"
     this.save.Click += new System.Windows.RoutedEventHandler(this.credit_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.border3 = ((System.Windows.Controls.Border)(target));
     return;
     case 8:
     this.cancel = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\..\..\pages\mbx\credit.xaml"
     this.cancel.Click += new System.Windows.RoutedEventHandler(this.credit_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;
        }