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

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

            FrmPart.Show(this);
        }
コード例 #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();
        }