Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            int selectedItemId = 0;

            foreach (DataGridViewRow row in grdMain.Rows)
            {
                if (row.Selected)
                {
                    selectedItemId = int.Parse(row.Cells[0].Value.ToString());
                }
            }

            Forms.Frm_Manage_Rules frmManageRules = new Forms.Frm_Manage_Rules(selectedItemId);
            frmManageRules.ShowDialog();
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            int selectedItemId = 0;

            foreach (DataGridViewRow row in grdMain.Rows)
            {
                if (row.Selected)
                {
                    selectedItemId = int.Parse(row.Cells[0].Value.ToString());
                }
            }

            Forms.Frm_Manage_Rules frmManageRules = new Forms.Frm_Manage_Rules(selectedItemId);
            frmManageRules.ShowDialog();
        }