public static void OpenRegisterForm() { logger.Trace("Open register form"); _register = new Register(Client.RegisterAdmin); _register.Show(); Application.Current.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() => _register.Activate())); }