Esempio n. 1
0
 private void dgClientRecord_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     try
     {
         DataGridViewRow dr = dgClientRecord.SelectedRows[0];
         this.Hide();
         ClientInfoUI aInformationUi = new ClientInfoUI();
         aInformationUi.Show();
         aInformationUi.txtId.Text           = dr.Cells[0].Value.ToString();
         aInformationUi.txtName.Text         = dr.Cells[1].Value.ToString();
         aInformationUi.txtContactNo.Text    = dr.Cells[2].Value.ToString();
         aInformationUi.txtAltContactNo.Text = dr.Cells[3].Value.ToString();
         aInformationUi.txtEmail.Text        = dr.Cells[4].Value.ToString();
         aInformationUi.txtAddress.Text      = dr.Cells[5].Value.ToString();
         aInformationUi.btnSave.Enabled      = false;
         aInformationUi.btnUpdate.Enabled    = true;
         aInformationUi.btnDelete.Enabled    = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 2
0
        private void clientInformationToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            ClientInfoUI aUi = new ClientInfoUI();

            aUi.Show();
        }
Esempio n. 3
0
        private void ClientRecordUI_FormClosing(object sender, FormClosingEventArgs e)
        {
            ClientInfoUI aUi = new ClientInfoUI();

            aUi.Show();
        }