private void işOlarakGüncelleToolStripMenuItem_Click(object sender, EventArgs e) { Request request = _requestBLL.Get((int)dgvRequest.SelectedRows[0].Cells["ID"].Value); WorkAddForm workAdd = new WorkAddForm(); workAdd._newRequestToWork = request; workAdd.Show(); }
private void menuNewWork_Click(object sender, EventArgs e) { bool isOpen = false; foreach (Form item in this.MdiChildren) { if (item is WorkAddForm) { isOpen = true; } } if (isOpen == true) { waf.BringToFront(); } else { waf = new WorkAddForm(); waf.MdiParent = this; waf.Show(); } }