Beispiel #1
0
        private void dgv_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0)
            {
                plantEL.Plantid = Convert.ToInt32(dgv.Rows[e.RowIndex].Cells["plantid"].Value);
            }

            if (e.ColumnIndex == 0)
            {
                var frm = new PL.Registrations.frmPlantCRUD("VIEW", plantEL, this, plantcategoryEL);
                frm.ShowDialog();
            }
        }
Beispiel #2
0
        private void pbAdd_Click(object sender, EventArgs e)
        {
            var frm = new PL.Registrations.frmPlantCRUD("ADD", plantEL, this, plantcategoryEL);

            frm.ShowDialog();
        }