Пример #1
0
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);

            m_wndHelper.Detach();
            m_wndHelper.Dispose();
            m_window1 = null;
        }
Пример #2
0
 public static void ShowWindow()
 {
     if (m_window1 != null)
     {
         m_window1.Focus();
         return;
     }
     m_window1 = new WindowHost();
     m_window1.Show();
 }