Revision 6bcdd8e2 trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs
b/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs | ||
---|---|---|
87 | 87 |
public class ShellViewModel : Screen, IStatusNotification, IShell, |
88 | 88 |
IHandle<Notification>, IHandle<SelectiveSynchChanges>, IHandle<ShowFilePropertiesEvent> |
89 | 89 |
{ |
90 |
|
|
90 | 91 |
//The Status Checker provides the current synch state |
91 | 92 |
//TODO: Could we remove the status checker and use events in its place? |
92 | 93 |
private readonly IStatusChecker _statusChecker; |
... | ... | |
170 | 171 |
Log.Error("Error while starting the ShellViewModel",exc); |
171 | 172 |
throw; |
172 | 173 |
} |
174 |
|
|
173 | 175 |
} |
174 | 176 |
|
175 | 177 |
|
... | ... | |
832 | 834 |
notification.Message = "Start Synchronisation"; |
833 | 835 |
} |
834 | 836 |
|
837 |
var progress = notification as ProgressNotification; |
|
838 |
if (progress != null) |
|
839 |
{ |
|
840 |
StatusMessage = String.Format("Pithos {0}\r\n{1} {2} of {3} - {4}", |
|
841 |
_fileVersion.Value.FileVersion, |
|
842 |
progress.Action, |
|
843 |
progress.Block/(double)progress.TotalBlocks, |
|
844 |
progress.FileSize.ToByteSize(), |
|
845 |
progress.FileName); |
|
846 |
return; |
|
847 |
} |
|
848 |
|
|
835 | 849 |
if (String.IsNullOrWhiteSpace(notification.Message) && String.IsNullOrWhiteSpace(notification.Title)) |
836 | 850 |
return; |
837 | 851 |
|
Also available in: Unified diff