示例#1
0
        private void buttonDiseaseAdd_Click(object sender, EventArgs e)
        {
            var addForm = new AddDiseaseForm(this);

            addForm.BringToFront();
            addForm.Activate();
            addForm.Show();
        }
示例#2
0
        private void buttonDiseaseDetails_Click(object sender, EventArgs e)
        {
            DiseaseGridClickEvent();

            var value = int.Parse((string)dataGridDisease.Rows[dataGridDisease.SelectedRows[0].Index].Cells[0].Value);
            var obj   = ServiceProvider.Get <BolestService>().Get(value);

            var form = new AddDiseaseForm(this, obj, false, true);

            form.BringToFront();
            form.Activate();
            form.Show();
        }