Beispiel #1
0
        private void GoIntoMain(string _PlayerID)
        {
            MainHome a = new MainHome(_PlayerID);

            a.Show();
            this.Close();
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainHomewd = ((BlueKara_Design.MainHome)(target));
                return;

            case 2:
                this.mainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.SwitchType = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 39 "..\..\MainHome.xaml"
                this.SwitchType.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.Switch2);

            #line default
            #line hidden

            #line 39 "..\..\MainHome.xaml"
                this.SwitchType.Unchecked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.Switch1);

            #line default
            #line hidden
                return;

            case 4:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.image1 = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.lbUsername = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lbLevel = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.progressScore = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 9:
                this.image2 = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.txbCurentscore = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.txbMaxscore = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:

            #line 49 "..\..\MainHome.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenFlyout);

            #line default
            #line hidden
                return;

            case 13:

            #line 50 "..\..\MainHome.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Logout);

            #line default
            #line hidden
                return;

            case 14:
                this.image1_Copy = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.gridlistMusic = ((System.Windows.Controls.DataGrid)(target));

            #line 62 "..\..\MainHome.xaml"
                this.gridlistMusic.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.OpenSong);

            #line default
            #line hidden
                return;

            case 16:

            #line 74 "..\..\MainHome.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AddKaraoketoQueue);

            #line default
            #line hidden
                return;

            case 17:
                this.stack = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.transferCurreny = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 19:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 20:
                this.tblWelcome = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.tblTenbaihat = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.tbKeySearch = ((System.Windows.Controls.TextBox)(target));

            #line 119 "..\..\MainHome.xaml"
                this.tbKeySearch.KeyUp += new System.Windows.Input.KeyEventHandler(this.EnterSearch);

            #line default
            #line hidden
                return;

            case 23:
                this.image3 = ((System.Windows.Controls.Image)(target));
                return;

            case 24:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.gridQueue = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 26:

            #line 134 "..\..\MainHome.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.RemoveKaraokeFromQueue);

            #line default
            #line hidden
                return;

            case 27:
                this.cbboxType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.videoplayer = ((BlueKara_Design.UseControl.VideoPlayer)(target));
                return;

            case 29:
                this.FlyoutInfo = ((MahApps.Metro.Controls.Flyout)(target));

            #line 160 "..\..\MainHome.xaml"
                this.FlyoutInfo.Loaded += new System.Windows.RoutedEventHandler(this.UpdateInfo);

            #line default
            #line hidden
                return;

            case 30:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 31:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.txbEmail = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.txbUsername = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.scorelabel = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.levellabel = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.txbScore = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.txbLevel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.textBlock3 = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.txbName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.txbPhone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 43:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.txbJob = ((System.Windows.Controls.TextBox)(target));
                return;

            case 45:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.pickdate = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 47:
                this.label7 = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.txbLink = ((System.Windows.Controls.TextBox)(target));
                return;

            case 49:
                this.label8 = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.pwPassWord = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 51:
                this.label9 = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.psnewpass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 53:
                this.label10 = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.psCurrentPass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 55:
                this.txbDate = ((System.Windows.Controls.TextBox)(target));

            #line 197 "..\..\MainHome.xaml"
                this.txbDate.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.onlynumer);

            #line default
            #line hidden
                return;

            case 56:

            #line 202 "..\..\MainHome.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeInfo);

            #line default
            #line hidden
                return;

            case 57:
                this.closefyout = ((System.Windows.Controls.Button)(target));

            #line 206 "..\..\MainHome.xaml"
                this.closefyout.Click += new System.Windows.RoutedEventHandler(this.CloseFlyout);

            #line default
            #line hidden
                return;

            case 58:
                this.Progressring = ((MahApps.Metro.Controls.ProgressRing)(target));
                return;

            case 59:
                this.GifBackground = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }