From b37cb71a3ea6725dd67995953f3d022abb5e6966 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 29 Oct 2014 19:17:07 +0000 Subject: [PATCH] statusicon controller: Wrap all useful project info into a wrapper object --- SparkleShare/SparkleStatusIconController.cs | 111 +++++++++++++------- 1 file changed, 71 insertions(+), 40 deletions(-) diff --git a/SparkleShare/SparkleStatusIconController.cs b/SparkleShare/SparkleStatusIconController.cs index 40a45c6c..b65b303a 100755 --- a/SparkleShare/SparkleStatusIconController.cs +++ b/SparkleShare/SparkleStatusIconController.cs @@ -33,6 +33,66 @@ namespace SparkleShare { } + public class ProjectInfo { + + private SparkleRepoBase repo; + + public string Name { get { return this.repo.Name; }} + public string Path { get { return this.repo.LocalPath; }} + + public bool IsPaused { get { return this.repo.Status == SyncStatus.Paused; }} + public bool HasError { get { return this.repo.Status == SyncStatus.Error; }} + + + public string StatusMessage { + get { + string status_message = "Last sync at