private void AddCompany(object sender, EventArgs e) { frmCompany Item = new frmCompany(this); Item.FormClosed += Company_FormClosed; Item.Show(this); }
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(); }
private void nowaToolStripMenuItem2_Click_1(object sender, EventArgs e) { //new company if (!RuntimeSettings.CurrentUser.IsAuthorized()) { return; } frmCompany FrmCompany = new frmCompany(this); FrmCompany.Show(this); }
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(); }
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(); }