Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            addEstablishmentNames aEN = new addEstablishmentNames();

            aEN.lblEstabNo.Text = "0";
            aEN.ShowDialog();
        }
Example #2
0
        private void DGVestablishment_DoubleClick(object sender, EventArgs e)
        {
            string establishmentNoStr = DGVestablishment.SelectedRows[0].Cells["EstablishmentNo"].Value.ToString();//MessageBox.Show(drugNoStr);
            addEstablishmentNames add = new addEstablishmentNames();

            add.lblEstabNo.Text             = establishmentNoStr; //drugNoStr > 0 :  update
            add.lblEstablishmentHeader.Text = "Update or Delete Establishment Name";
            add.ShowDialog();
        }