Пример #1
0
 static public void Open(string subject = "", string bodyText = "")
 {
     if (!contactFormIsOpen)
     {
         contactFormWindow         = new ContactFormWindow(subject, bodyText);
         contactFormIsOpen         = true;
         contactFormWindow.Closed += (sender, e) => { contactFormIsOpen = false; };
     }
     else
     {
         if (contactFormWindow != null)
         {
             contactFormWindow.BringToFront();
         }
     }
 }
Пример #2
0
 static public void Open(string subject = "", string bodyText = "")
 {
     if (!contactFormIsOpen)
     {
         contactFormWindow = new ContactFormWindow(subject, bodyText);
         contactFormIsOpen = true;
         contactFormWindow.Closed += (sender, e) => { contactFormIsOpen = false; };                
     }
     else
     {
         if (contactFormWindow != null)
         {
             contactFormWindow.BringToFront();
         }
     }
 }