Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmPrincipal = ((CrudCSharp.MainWindow)(target));
                return;

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

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

            #line 12 "..\..\..\Apresentacao\MainWindow.xaml"
                this.mniCadastro.Click += new System.Windows.RoutedEventHandler(this.mniCadastro_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\..\Apresentacao\MainWindow.xaml"
                this.mniPEE.Click += new System.Windows.RoutedEventHandler(this.mniPEE_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmPrincipal = ((CrudCSharp.MainWindow)(target));
                return;

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

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

            case 4:
                this.mniPEE = ((System.Windows.Controls.MenuItem)(target));
                return;
            }
            this._contentLoaded = true;
        }