protected override void OnClosed(EventArgs e) { base.OnClosed(e); m_wndHelper.Detach(); m_wndHelper.Dispose(); m_window1 = null; }
public static void ShowWindow() { if (m_window1 != null) { m_window1.Focus(); return; } m_window1 = new WindowHost(); //m_window1.Icon = new BitmapImage(new Uri("pack://application:,,,/PDIWT_MS_ZJCZL;component/Resources/Image/Nonya Kueh.ico", UriKind.RelativeOrAbsolute)); m_window1.Show(); }