Exemple #1
0
        public void Handle(UiSystemReadyUiMsg msg)
        {
            var file = _args.FirstOrDefault();

            if (file != null && File.Exists(file))
            {
                LoadContentsAndNotifySystems(file);
            }
            else
            {
                var s = _settings.Get<string>("Core.TmpText");
                if (s != null)
                    _lastCapturedMarkdown = s;
                _publisher.Publish(new NewContentForEditorUiMsg(_lastCapturedMarkdown));
            }
        }
Exemple #2
0
        public void Handle(UiSystemReadyUiMsg msg)
        {
            if (_settings.IsSetUp)
            {
                End();
                return;
            }

            var x = GetDirectoryValue();
            if (x != null)
            {
                SetRootToSettings(x.Value);
                End();
                return;
            }
            _publisher.Publish(new ActivateAppDialog(typeof(SettingsViewModel)));
        }