Пример #1
0
    //public XElement ParsedXml { get; set; }



    public MainViewModel()
    {
      this.Settings = SettingsIO.LoadSettings<Settings>();
      this.HighlightingManager = new SyntaxHighlightingManager(this.Settings);
      this.ApplicationThemeManager = new ApplicationThemeManager(this.Settings);
      this.Editor = new EditorViewModel(this.Settings);
      this.XmlUtility = new XmlUtilityViewModel(this.Settings);
      this.ToggleEditorModeCommand = new RelayCommand(ToggleEditorModeCommand_Execute);
      this.MessengerInstance.Register<ApplicationClosingMessage>(this, HandleApplicationClosingMessage);
      this.MessengerInstance.Register<DisplayApplicationStatusMessage>(this, HandleDisplayApplicationStatusMessage);
      this.MessengerInstance.Register<DisplayToolInformationMessage>(this, HandleDisplayToolInformationMessage);
      this.MessengerInstance.Register<DocumentRefreshCompleted>(this, HandleDocumentRefreshCompletedMessage);
    }