Beispiel #1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            FormsForm ff = new FormsForm();
            Forms     f  = new Forms();

            f.UpdateForms(comboBox1, textBox2, textBox1, ff.dataGridView2);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            FormsForm ff   = new FormsForm();
            Forms     form = new Forms();

            form.InsertForms(textBox1, textBox2, ff.dataGridView2);
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            var item = this.comboBox1.GetItemText(this.comboBox1.SelectedItem);

            if (item == "Disease")
            {
                DiseaseForm df = new DiseaseForm();
                df.Show();
            }
            else if (item == "Forms")
            {
                FormsForm ff = new FormsForm();
                ff.Show();
            }
            else if (item == "Manufacturer")
            {
                ManForms mf = new ManForms();
                mf.Show();
            }
            else if (item == "Medicine")
            {
                MedicineForm med = new MedicineForm();
                med.Show();
            }
            else if (item == "Symptom")
            {
                SymptomForm sf = new SymptomForm();
                sf.Show();
            }
            else
            {
                MessageBox.Show("Choose something");
                return;
            }

            this.Close();
        }