public static WinSetRobotAdj GetWinInst() { if (g_WinSetRobotPoints == null) { g_WinSetRobotPoints = new WinSetRobotAdj(); } return(g_WinSetRobotPoints); }
private void BaseMetroWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { try { TriggerCloseEvent(); //e.Cancel = true; // this.Visibility = Visibility.Hidden; g_WinSetRobotPoints = null; } catch (Exception ex) { Log.L_I.WriteError(NameClass, ex); } }