Example #1
0
        private void Add(object sender, EventArgs e)
        {
            imagePreview.Visible = false;
            frmPart FrmPart = new frmPart(this);

            FrmPart.Show();
        }
Example #2
0
        private void nowaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!RuntimeSettings.CurrentUser.IsAuthorized())
            {
                return;
            }
            frmPart FrmPart = new frmPart(this);

            FrmPart.Show(this);
        }
Example #3
0
        private void View(object sender, EventArgs e)
        {
            imagePreview.Visible = false;
            int id = Convert.ToInt32(dgItems.Rows[dgItems.CurrentCell.RowIndex].Cells[0].Value);

            Part item = new Part();

            item = Keeper.Items.Where(u => u.PartId == id).FirstOrDefault();
            frmPart ItemForm = new frmPart(item, this);

            ItemForm.Show();
        }