コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FormServicoOfertado = ((Redinha.Cadastro_Servicos_Ofertados)(target));
                return;

            case 2:
                this.LbId = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.TBId = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.BtnAdicionar = ((System.Windows.Controls.Button)(target));
                return;

            case 5:
                this.LbVagas = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 8:
                this.TBDescricao = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.TBResponsavel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.TBVagas = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.BtnFechar = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.BtnLimpar = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        private void Cadastro_Servicos_Click(object sender, RoutedEventArgs e)
        {
            Cadastro_Servicos_Ofertados CadastrarServicos = new Cadastro_Servicos_Ofertados();

            CadastrarServicos.ShowDialog();
        }