private void btn_Add_Telephone_Click(object sender, EventArgs e) { MdiParent parent = (MdiParent)this.MdiParent; if (!parent.formExist("AddNumUser")) { frm_AddNumUser = new AddNumUser(Convert.ToInt32(uta.Id_By_Identification(identification))); frm_AddNumUser.lbl_NumId.Text = identification; frm_AddNumUser.MdiParent = this.MdiParent; frm_AddNumUser.Show(); } }
private void showButtons(object sender, EventArgs e) { if (Found) { btn_AddTel.Visible = true; btn_Edit_Telephone.Visible = true; Identification = txt_Identification.Text; UserId = Convert.ToInt32(tau.Id_By_Identification(Identification)); } else { btn_AddTel.Visible = false; btn_Edit_Telephone.Visible = true; } }