//private System.Windows.Window introForm;
 //private void ShowIntroForm()
 //{
 //    if (introForm == null)
 //    {
 //        introForm = new WpfFormLibrary.IntroForm();
 //        introForm.Closed += mainForm_Closed; // avoid reshowing a disposed form
 //        ElementHost.EnableModelessKeyboardInterop(introForm);
 //        introForm.Show();
 //    }
 //    else { introForm.Activate(); }
 //}
 private void ShowDetailsForm()
 {
     if (detailsForm == null)
     {
         detailsForm = new RadForm1 { HostManager = hostManager };
         detailsForm.Closed += detailsForm_Closed; // avoid reshowing a disposed form
         detailsForm.Show();
     }
     else { detailsForm.Activate(); }
 }
 private void mainForm_Closed(object sender, EventArgs e)
 {
     detailsForm = null;
 }