private void tbtnAdd_Click(object sender, EventArgs e) { DataForms.FrmEditClient frm = new FitnessProject.DataForms.FrmEditClient(); frm.SelectClientMsg += new FitnessProject.DataForms.FrmEditClient.SelectClientHandler(frm_SelectClientMsg); frm.ShowDialog(); LoadData(); }
private void tbtnEdit_Click(object sender, EventArgs e) { int[] i; int SelRow = -1; i = advBandedGridView1.GetSelectedRows(); SelRow = i[0]; int ind = 0; try { ind = Convert.ToInt32(advBandedGridView1.GetRowCellValue(SelRow, "Id")); } catch (Exception err) { MessageBox.Show(this, err.Message, Lib.StringConstants.ProjectName, MessageBoxButtons.OK, MessageBoxIcon.Error); } DataForms.FrmEditClient frm = new FitnessProject.DataForms.FrmEditClient(ind); frm.ShowDialog(); LoadData(); }
private void btnSingle_Click(object sender, EventArgs e) { DataForms.FrmEditClient frm = new FitnessProject.DataForms.FrmEditClient(true); frm.ShowDialog(); }