Example #1
0
        public void ShowUI()
        {
            ContactWindow win = new ContactWindow();

            win.Show();
            parent.Close();
        }
Example #2
0
 void ShowWindow(bool showLogin)
 {
     Dispatcher.BeginInvoke(new Action(() =>
     {
         if (showLogin)
         {
             Login login = new Login();
             login.Show();
         }
         else
         {
             ContactWindow win = new ContactWindow();
             win.Show();
         }
         this.Close();
     }), DispatcherPriority.Background);
 }