Пример #1
0
        public void TryShow()
        {
            var config = ClientServiceLocator.GetService <IUserConfiguration>();
            var state  = config.LoadConfiguration();

            if (!state.ShowWelcome)
            {
                return;
            }
            using (var view = factory.CreateWelcomeView()) {
                view.LanguageChanged += new EventHandler((o, e) => {
                    config.SaveConfigurate(state);
                    if (view != null)
                    {
                        view.ResetLanguage();
                    }
                });

                view.SetState(state);
                view.ShowView();
                config.SaveConfigurate(state);
            }
        }