private void btn_EditClient_Click(object sender, EventArgs e) { try { id_Client = Convert.ToInt32(grid_SearchClients.SelectedRows[0].Cells[0].Value.ToString()); res = tac.Show_By_Id(id_Client); frm_EditClients.cmb_TypeIdentification.Text = res[0].Tipo_Identificacion.ToString(); frm_EditClients.txt_Identification.Text = res[0].Numero_Identificacion.ToString(); frm_EditClients.txt_FirstName.Text = res[0].Nombres.ToString(); frm_EditClients.txt_LastName.Text = res[0].Apellidos.ToString(); frm_EditClients.txt_Address.Text = res[0].Dir_Numero.ToString(); frm_EditClients.txt_Neightborhood.Text = res[0].Dir_Barrio.ToString(); frm_EditClients.Found = true; this.Close(); frm_EditClients.Show(); } catch (Exception error) { MessageBox.Show("Ha Ocurrido el Siguiente Error: " + error, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void ts_EditClient_Click(object sender, EventArgs e) { if (!formExist("OptionsClients")) { frm_OptionClients = new OptionsClients(); frm_OptionClients.MdiParent = this; frm_OptionClients.Show(); } }
private void pictureBox1_Click(object sender, EventArgs e) { frm_OptionClients = new OptionsClients(); frm_OptionClients.MdiParent = this.MdiParent; frm_OptionClients.Show(); }