/// <summary> /// Initializes a new instance of the <see cref="AboutViewModel" /> class. /// </summary> /// <param name="runtime">The runtime service.</param> public AboutViewModel(IRuntimeService runtime) { DisplayName = $"{_dialogTitlePrefix} - About"; Runtime = runtime; License = new TextEditorViewModel(Runtime, null, true); Notice = new TextEditorViewModel(Runtime, null, true); ApplicationTitle = _applicationTitle; DocumentPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); }
/// <summary> /// Initializes a new instance of the <see cref="AboutViewModel" /> class. /// </summary> /// <param name="runtime">The runtime service.</param> public AboutViewModel(IRuntimeService runtime) { DisplayName = "About"; Runtime = runtime; License = new TextEditorViewModel(Runtime, null, true); Notice = new TextEditorViewModel(Runtime, null, true); ApplicationTitle = _applicationTitle; ApplicationVersion = Application.Current.GetType().GetAssemblyVersion(); }