public static CalculationsWindow GetInstance()
        {
            if (instance == null)
            {
                instance = new CalculationsWindow();
            }

            return(instance);
        }
 //window closing event handler
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     instance = null;
 }
Exemple #3
0
 private void Image_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     CalculationsWindow.GetInstance().Show();
     CalculationsWindow.GetInstance().Activate();
 }