public void ShowUI() { ContactWindow win = new ContactWindow(); win.Show(); parent.Close(); }
public ContactWindow() { InitializeComponent(); RemoveGroupBarOverFlowButton(); _contactWindow = this; popUpMessage.IsOpen = false; }
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); }