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();
 }
Esempio n. 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;
 }
Esempio n. 5
0
 private void medicineComments_Click(object sender, RoutedEventArgs e)
 {
     MedicineWithCommentPreview.GetInstance().Show();
 }