Exemple #1
0
        private void nowyRegałToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!RuntimeSettings.CurrentUser.IsAuthorized())
            {
                return;
            }
            frmStorageBin FrmStorageBin = new frmStorageBin(this);

            FrmStorageBin.Show(this);
        }
        private void View(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(dgItems.Rows[dgItems.CurrentCell.RowIndex].Cells[0].Value);

            var item = new StorageBin();

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

            ItemForm.Show();
        }
        private void Add(object sender, EventArgs e)
        {
            frmStorageBin FrmItem = new frmStorageBin(this);

            FrmItem.Show();
        }