예제 #1
0
        private void buttonMedicineAdd_Click(object sender, EventArgs e)
        {
            FormMedicineDetail formMedicineDetail = new FormMedicineDetail();
            formMedicineDetail.ShowDialog();

            refreshDataViewMedicine();
        }
예제 #2
0
        private void buttonMedicineAdd_Click(object sender, EventArgs e)
        {
            FormMedicineDetail formMedicineDetail = new FormMedicineDetail();

            formMedicineDetail.ShowDialog();

            refreshDataViewMedicine();
        }
예제 #3
0
        private void dataViewMedicine_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataViewMedicine.SelectedRows.Count > 0)
            {
                int medicineID = Convert.ToInt32(dataViewMedicine.SelectedRows[0].Cells[0].Value);
                FormMedicineDetail formMedicineDetail = new FormMedicineDetail(Medicine.GetMedicine(medicineID), "edit");
                formMedicineDetail.ShowDialog();

                refreshDataViewMedicine();
            }
        }
예제 #4
0
        private void buttonMedicineEdit_Click(object sender, EventArgs e)
        {
            if (dataViewMedicine.SelectedRows.Count > 0)
            {
                int medicineID = Convert.ToInt32(dataViewMedicine.SelectedRows[0].Cells[0].Value);
                FormMedicineDetail formMedicineDetail = new FormMedicineDetail(Medicine.GetMedicine(medicineID), "edit");
                formMedicineDetail.ShowDialog();

                refreshDataViewMedicine();
            }
        }