Example #1
0
 /// <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);
 }
Example #2
0
 /// <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();
 }