예제 #1
0
 public static NewMedicineWindow GetInstance()
 {
     if (instance == null)
     {
         instance = new NewMedicineWindow();
     }
     return(instance);
 }
예제 #2
0
 private void newMedicineMenuItem_Click(object sender, RoutedEventArgs e)
 {
     NewMedicineWindow.GetInstance().Show();
 }
예제 #3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     instance = null;
 }