2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.ComponentModel.Composition;
9 namespace Pithos.Client.WPF.Shell
11 [Export(typeof(MiniStatusViewModel)),PartCreationPolicy(CreationPolicy.Shared)]
12 public class MiniStatusViewModel:Screen
14 public override string DisplayName
18 return "Pithos+ Status";
22 base.DisplayName = value;
28 get { return Shell.StatusMessage; }
31 private ShellViewModel _shell;
32 public ShellViewModel Shell
34 get { return _shell; }
38 _shell.PropertyChanged += OnParentChanged;
42 private void OnParentChanged(object sender, PropertyChangedEventArgs e)
44 if (e.PropertyName=="StatusMessage")
45 NotifyOfPropertyChange(()=>Status);