private void BtnLogar_Click(object sender, RoutedEventArgs e)
 {
     MessageBox.Show("Logado com sucesso", "Entrando", MessageBoxButton.OK);
     View.frmPrincipal frmP = new View.frmPrincipal();
     frmP.ShowDialog();
     this.Close();
 }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmPrincipalAdministracao = ((StokGames.View.frmPrincipal)(target));
                return;

            case 2:
                this.mniMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.mniCadastro = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 4:
                this.mniFuncionario = ((System.Windows.Controls.MenuItem)(target));

            #line 13 "..\..\..\View\frmPrincipal.xaml"
                this.mniFuncionario.Click += new System.Windows.RoutedEventHandler(this.MniFuncionario_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.mniCliente = ((System.Windows.Controls.MenuItem)(target));

            #line 14 "..\..\..\View\frmPrincipal.xaml"
                this.mniCliente.Click += new System.Windows.RoutedEventHandler(this.MniCliente_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.mniProduto = ((System.Windows.Controls.MenuItem)(target));

            #line 15 "..\..\..\View\frmPrincipal.xaml"
                this.mniProduto.Click += new System.Windows.RoutedEventHandler(this.MniProduto_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.mniFornecedor = ((System.Windows.Controls.MenuItem)(target));

            #line 16 "..\..\..\View\frmPrincipal.xaml"
                this.mniFornecedor.Click += new System.Windows.RoutedEventHandler(this.MniFornecedor_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.mniSair = ((System.Windows.Controls.MenuItem)(target));

            #line 18 "..\..\..\View\frmPrincipal.xaml"
                this.mniSair.Click += new System.Windows.RoutedEventHandler(this.MniSair_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.lblMensagemEntrada = ((System.Windows.Controls.Label)(target));
                return;

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