Revision 9c6d3193 trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs
b/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs | ||
---|---|---|
659 | 659 |
|
660 | 660 |
} |
661 | 661 |
|
662 |
public void NotifyConflicts(IEnumerable<FileSystemInfo> conflictFiles, string message) |
|
663 |
{ |
|
664 |
if (conflictFiles == null) |
|
665 |
return; |
|
666 |
if (!conflictFiles.Any()) |
|
667 |
return; |
|
668 |
//TODO: Create a more specific message. For now, just show a warning |
|
669 |
NotifyForFiles(conflictFiles,message,TraceLevel.Warning); |
|
670 |
|
|
671 |
} |
|
672 |
|
|
673 |
public void NotifyForFiles(IEnumerable<FileSystemInfo> files, string message,TraceLevel level=TraceLevel.Info) |
|
674 |
{ |
|
675 |
if (files == null) |
|
676 |
return; |
|
677 |
if (!files.Any()) |
|
678 |
return; |
|
679 |
|
|
680 |
StatusMessage = message; |
|
681 |
|
|
682 |
_events.Publish(new Notification { Title = "Pithos", Message = message, Level = level}); |
|
683 |
} |
|
684 |
|
|
662 | 685 |
|
663 |
public void RemoveMonitor(string accountName)
|
|
686 |
public void RemoveMonitor(string accountName)
|
|
664 | 687 |
{ |
665 | 688 |
if (String.IsNullOrWhiteSpace(accountName)) |
666 | 689 |
return; |
Also available in: Unified diff