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