private void Add(object sender, EventArgs e) { imagePreview.Visible = false; frmPart FrmPart = new frmPart(this); FrmPart.Show(); }
private void nowaToolStripMenuItem_Click(object sender, EventArgs e) { if (!RuntimeSettings.CurrentUser.IsAuthorized()) { return; } frmPart FrmPart = new frmPart(this); FrmPart.Show(this); }
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(); }