void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.frmCad = ((CrudCSharp.Apresentacao.frmCadastro)(target)); return; case 2: this.lblNome = ((System.Windows.Controls.Label)(target)); return; case 3: this.txbNome = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.lblRG = ((System.Windows.Controls.Label)(target)); return; case 5: this.txbRG = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.lblCpf = ((System.Windows.Controls.Label)(target)); return; case 7: this.txbCpf = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.btnCadastrar = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
private void mniCadastro_Click(object sender, RoutedEventArgs e) { Apresentacao.frmCadastro frmC = new Apresentacao.frmCadastro(); frmC.ShowDialog(); }