public void ShowMainWindow() { Context.Post(s => { WPFAuthorizeDisplay = new WpfAuthorizeDisplay(); DoShowMainWindow(); }, null); }