Revision 2341c603 trunk/Pithos.Client.WPF/Shell/MiniStatusViewModel.cs

b/trunk/Pithos.Client.WPF/Shell/MiniStatusViewModel.cs
44 44
            if (e.PropertyName=="StatusMessage")
45 45
                NotifyOfPropertyChange(()=>Status);
46 46
        }
47

  
48
        private string _pauseImage="../Images/Pause.png";
49
        public string PauseImage
50
        {
51
            get { return _pauseImage; }
52
            set
53
            {
54
                _pauseImage = value;
55
                NotifyOfPropertyChange(()=>PauseImage);
56
            }
57
        }
58

  
59
        private string _pauseToolTip="Pause Syncing";
60
        public string PauseToolTip
61
        {
62
            get { return _pauseToolTip; }
63
            set
64
            {
65
                _pauseToolTip = value;
66
                NotifyOfPropertyChange(()=>PauseToolTip);
67
            }
68
        }
69

  
70
        public void ToggleSyncing()
71
        {
72
            Shell.ToggleSynching();
73
            PauseImage = Shell.IsPaused
74
                             ? "../Images/Play.png"
75
                             : "../Images/Pause.png";
76
            PauseToolTip = Shell.IsPaused
77
                             ? "Resume Syncing"
78
                             : "Pause Syncing";
79
        }
47 80
    }
48 81
}

Also available in: Unified diff