Exemplo n.º 1
0
        private void btn_AddNew_Click(object sender, EventArgs e)
        {
            AddClient addClient = new AddClient();

            ButtonClicked.addClientMaster = (sender as Button).Text;
            addClient.ShowDialog();
            refreshClientGrid();
        }
Exemplo n.º 2
0
        private void btn_Display_Click(object sender, EventArgs e)
        {
            AddClient addClient = new AddClient();

            ButtonClicked.displayClientMaster = (sender as Button).Text;
            addClient.lbl_ID.Text             = dg_Client.CurrentRow.Cells[5].Value.ToString();
            addClient.txt_Name.Text           = dg_Client.CurrentRow.Cells[1].Value.ToString();
            addClient.txt_ShortCode.Text      = dg_Client.CurrentRow.Cells[4].Value.ToString();
            addClient.cmb_Account.Text        = dg_Client.CurrentRow.Cells[3].Value.ToString();
            addClient.txt_Country.Text        = dg_Client.CurrentRow.Cells[2].Value.ToString();
            addClient.ShowDialog();
        }