private void dgvBoms_DoubleClick(object sender, EventArgs e) { int id = Convert.ToInt32(dgvBoms.Rows[dgvBoms.CurrentCell.RowIndex].Cells[0].Value); Bom item = new Bom(); item = boms.Items.Where(i => i.BomId == id).FirstOrDefault(); frmBomItem form = new frmBomItem(item, this); form.Show(this); }
private void View(object sender, EventArgs e) { int id = Convert.ToInt32(dgItems.Rows[dgItems.CurrentCell.RowIndex].Cells[0].Value); Bom item = new Bom(); item = Keeper.Items.Where(u => u.BomId == id).FirstOrDefault(); frmBomItem ItemForm = new frmBomItem(item, this); ItemForm.Show(); }
private void btnAddBom_Click(object sender, EventArgs e) { frmBomItem form = new frmBomItem(this, null, _this.PlaceId); form.Show(this); }
private void Add(object sender, EventArgs e) { frmBomItem ItemForm = new frmBomItem(this); ItemForm.Show(this); }
private void btnAdd_Click(object sender, EventArgs e) { frmBomItem form = new frmBomItem(this, _this.PartId, null); form.Show(this); }