UUID Changes
[pithos-ms-client] / trunk / Pithos.Client.WPF / Shell / ShellViewModel.cs
index 9500b54..4a2a4c9 100644 (file)
@@ -69,8 +69,10 @@ using System;
 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
@@ -231,6 +233,17 @@ namespace Pithos.Client.WPF {
                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
@@ -457,6 +470,18 @@ namespace Pithos.Client.WPF {
                        }\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
@@ -831,7 +856,7 @@ namespace Pithos.Client.WPF {
            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
@@ -1136,6 +1161,7 @@ namespace Pithos.Client.WPF {
                                                      percentage,\r
                                                      progress.FileSize.ToByteSize(),\r
                                                      progress.FileName);\r
+                ProgressBar = percentage;\r
                        return;\r
                    }\r
 \r