private void ok_btn_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in vars_dgv.Rows) { ICheckElem _elem = (ICheckElem)row.Tag; _elem.Toggle((bool)row.Cells[0].Value); } status = EExitStatus.Ok; this.Close(); }
private void cancel_btn_click(object sender, EventArgs e) { status = EExitStatus.Cancel; this.Close(); }