+
+ private PithosStatus _pithosStatus = PithosStatus.Disconnected;
+
+ public void SetPithosStatus(PithosStatus status)
+ {
+ if (_pithosStatus == PithosStatus.LocalSyncing && status == PithosStatus.PollComplete)
+ return;
+ if (_pithosStatus == PithosStatus.PollSyncing && status == PithosStatus.LocalComplete)
+ return;
+ if (status == PithosStatus.LocalComplete || status == PithosStatus.PollComplete)
+ _pithosStatus = PithosStatus.InSynch;
+ else
+ _pithosStatus = status;
+ UpdateStatus();
+ }
+
+ public void SetPithosStatus(PithosStatus status,string message)
+ {
+ StatusMessage = message;
+ SetPithosStatus(status);
+ }
+
+ /* public Notifier GetNotifier(Notification startNotification, Notification endNotification)
+ {
+ return new Notifier(this, startNotification, endNotification);
+ }*/
+
+ public Notifier GetNotifier(string startMessage, string endMessage, params object[] args)
+ {
+ return new Notifier(this,
+ new StatusNotification(String.Format(startMessage,args)),
+ new StatusNotification(String.Format(endMessage,args)));
+ }
+
+
+ ///<summary>