Esempio n. 1
0
        private void AddCompany(object sender, EventArgs e)
        {
            frmCompany Item = new frmCompany(this);

            Item.FormClosed += Company_FormClosed;
            Item.Show(this);
        }
Esempio n. 2
0
        private void View(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(dgItems.Rows[dgItems.CurrentCell.RowIndex].Cells[0].Value);

            Company item = new Company();

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

            ItemForm.Show();
        }
Esempio n. 3
0
        private void nowaToolStripMenuItem2_Click_1(object sender, EventArgs e)
        {
            //new company
            if (!RuntimeSettings.CurrentUser.IsAuthorized())
            {
                return;
            }
            frmCompany FrmCompany = new frmCompany(this);

            FrmCompany.Show(this);
        }
Esempio n. 4
0
        private void EditSupplier(object sender, EventArgs e)
        {
            int id = Convert.ToInt32(cmbSupplier.GetSelectedValue <Company>());

            Company item = new Company();

            item = suppliers.Items.Where(u => u.CompanyId == id).FirstOrDefault();
            frmCompany ItemForm = new frmCompany(item, this);

            ItemForm.FormClosed += Company_FormClosed;
            ItemForm.Show();
        }
Esempio n. 5
0
        private void Add(object sender, EventArgs e)
        {
            frmCompany FrmCompany = new frmCompany(this);

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

            ItemForm.Show();
        }