Example #1
0
        private void nowyToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (!RuntimeSettings.CurrentUser.IsAuthorized())
            {
                return;
            }
            frmCompanyType FrmCompanyType = new frmCompanyType(this);

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

            CompanyType item = new CompanyType();

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

            ItemForm.Show();
        }