예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SymptomForm ss = new SymptomForm();
            Symptom     s  = new Symptom();

            s.InsertSymptom(textBox1, textBox2, ss.dataGridView1);
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            SymptomForm ss = new SymptomForm();
            Symptom     s  = new Symptom();

            s.DeleteSymptom(comboBox1, ss.dataGridView1);
        }
예제 #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();
        }