private void detailsFirmaButton_Click(object sender, EventArgs e) { var isInDatabase = db.Count($"SELECT COUNT(*) FROM company WHERE company_id = '{_company}'"); if (isInDatabase > 0) { var company = new Firmendetails(companyBox.Text); company.ShowDialog(); } else { var add = new addCompany(_company); add.ShowDialog(); } }
private void btnAddCompany_Click(object sender, EventArgs e) { var add = new addCompany(); add.ShowDialog(); }