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(); }
private void SetCommentToNullAndCloseWindow() { _commentedMedicine.Comment = null; MedicineWithCommentPreview.GetInstance().LoadListBox(); this.Close(); }
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { _instance = null; }
private void medicineComments_Click(object sender, RoutedEventArgs e) { MedicineWithCommentPreview.GetInstance().Show(); }