Exemple #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            int            rowid          = SupplierdataGridView.CurrentRow.Index;
            frmSupplierAdd frmSupplierAdd = new frmSupplierAdd();

            frmSupplierAdd.Show();
            frmSupplierAdd.textBoxSupId.Enabled  = true;
            frmSupplierAdd.buttonSaveNew.Enabled = true;
            frmSupplierAdd.buttonSave.Enabled    = false;
        }
Exemple #2
0
        private void SupplierdataGridView_DoubleClick(object sender, EventArgs e)
        {
            int            SupplierdataRowid = SupplierdataGridView.CurrentRow.Index;
            int            totalrow          = SupplierdataGridView.ColumnCount;
            frmSupplierAdd frmsub            = new frmSupplierAdd(SupplierdataGridView.CurrentRow, SupplierdataRowid, totalrow);


            frmsub.Show();
            frmsub.buttonSave.Enabled    = true;
            frmsub.buttonSaveNew.Enabled = false;
        }