using System.Collections.Generic;\r
using System.Linq;\r
using Pithos.Network;\r
+using Pithos.OFM;\r
using StatusService = Pithos.Client.WPF.Services.StatusService;\r
\r
+\r
namespace Pithos.Client.WPF {\r
using System.ComponentModel.Composition;\r
\r
VersionMessage = String.Format("Pithos+ {0}", fileVersion.FileVersion);\r
}\r
\r
+\r
+ public void openOFM()\r
+ {\r
+ var fileManager = IoC.Get<FileManagerViewModel>();\r
+ fileManager.Accounts = Settings.Accounts;\r
+ fileManager.CurrentAccount = fileManager.Accounts.First();// Settings.Accounts.First();\r
+ _windowManager.ShowWindow(fileManager);\r
+ //var ofm = new OFM.GUI.OFM();\r
+ //ofm.Show();\r
+ }\r
+\r
public void CurrentSyncStatus()\r
{\r
if (Accounts.Count == 0)\r
}\r
}\r
\r
+ private double _ProgressBar;\r
+ public double ProgressBar\r
+ {\r
+ get { return _ProgressBar; }\r
+ set\r
+ {\r
+ _ProgressBar = value;\r
+ NotifyOfPropertyChange(() => ProgressBar);\r
+ }\r
+ }\r
+\r
+\r
public string VersionMessage { get; set; }\r
\r
public string TooltipMessage\r
public Notifier GetNotifier(string startMessage, string endMessage, bool isActive=true,params object[] args)\r
{\r
return isActive?new Notifier(this, \r
- new StatusNotification(String.Format(startMessage,args)), \r
+ new StatusNotification(String.Format(startMessage,args)),\r
new StatusNotification(String.Format(endMessage,args)))\r
:new Notifier(this,(Notification) null,null);\r
}\r
percentage,\r
progress.FileSize.ToByteSize(),\r
progress.FileName);\r
+ ProgressBar = percentage;\r
return;\r
}\r
\r