Пример #1
0
 private void addButton_Click(object sender, EventArgs e)
 {
     if (tabControl.SelectedIndex == 0)
     {
         issue.ShowDialog();
     }
     if (tabControl.SelectedIndex == 1)
     {
         company.ShowDialog();
     }
 }
Пример #2
0
        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();
            }
        }
Пример #3
0
        private void btnAddCompany_Click(object sender, EventArgs e)
        {
            var add = new addCompany();

            add.ShowDialog();
        }