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