Beispiel #1
0
 public static AddCommentOnMedicineWindow GetInstance(Medicine medicine)
 {
     if (instance == null)
     {
         instance = new AddCommentOnMedicineWindow(medicine);
     }
     return(instance);
 }
Beispiel #2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     instance = null;
 }
 private void addCommentButton_Click(object sender, RoutedEventArgs e) =>
 AddCommentOnMedicineWindow.GetInstance(_medicineToPreview).ShowDialog();