public static MedicineWithCommentPreview GetInstance()
 {
     if (_instance == null)
     {
         _instance = new MedicineWithCommentPreview();
     }
     return(_instance);
 }
 private void lookCommentButton_Click(object sender, RoutedEventArgs e)
 {
     MedicineWithCommentPreview.GetInstance().Show();
     this.Close();
 }
Exemple #3
0
 private void SetCommentToNullAndCloseWindow()
 {
     _commentedMedicine.Comment = null;
     MedicineWithCommentPreview.GetInstance().LoadListBox();
     this.Close();
 }
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     _instance = null;
 }
Exemple #5
0
 private void medicineComments_Click(object sender, RoutedEventArgs e)
 {
     MedicineWithCommentPreview.GetInstance().Show();
 }