Exemplo n.º 1
0
 public static MedicineCommentRevidation GetInstance(Medicine commentedMedicine)
 {
     if (_instance == null)
     {
         _instance = new MedicineCommentRevidation(commentedMedicine);
     }
     return(_instance);
 }
Exemplo n.º 2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     _instance = null;
 }
 private void medicineListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     MedicineCommentRevidation.GetInstance((Medicine)medicineListBox.SelectedItem).Show();
 }