示例#1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.user1 = ((WebCM.pages.mbx.user)(target));
     return;
     case 2:
     this.label = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 3:
     this.remove = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.border2 = ((System.Windows.Controls.Border)(target));
     return;
     case 5:
     this.save = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\..\..\..\pages\mbx\user.xaml"
     this.save.Click += new System.Windows.RoutedEventHandler(this.save_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.border3 = ((System.Windows.Controls.Border)(target));
     return;
     case 7:
     this.cancel = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\..\..\..\pages\mbx\user.xaml"
     this.cancel.Click += new System.Windows.RoutedEventHandler(this.cancel_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#2
0
        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;
        }