public static MakeAOIGridWindow GetInstance() { if (_instance == null) { _instance = new MakeAOIGridWindow(); } return(_instance); }
private void MakeGrid() { MakeAOIGridWindow mgw = MakeAOIGridWindow.GetInstance(); mgw.AOI = _aoi; mgw.Owner = this; if (mgw.Visibility == Visibility.Visible) { mgw.BringIntoView(); } else { mgw.Show(); } }
private void MakeAOIGridWindow_Closed(object sender, EventArgs e) { _instance = null; }