Пример #1
0
        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);
        }
Пример #2
0
        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();
        }
Пример #3
0
        private void btnAddBom_Click(object sender, EventArgs e)
        {
            frmBomItem form = new frmBomItem(this, null, _this.PlaceId);

            form.Show(this);
        }
Пример #4
0
        private void Add(object sender, EventArgs e)
        {
            frmBomItem ItemForm = new frmBomItem(this);

            ItemForm.Show(this);
        }
Пример #5
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmBomItem form = new frmBomItem(this, _this.PartId, null);

            form.Show(this);
        }