/[cits3200i]/trunk/UWAPlugins/PlaybackPlugin/Source/PlaybackAction.cs


UCC Code Repository

Contents of /trunk/UWAPlugins/PlaybackPlugin/Source/PlaybackAction.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (show annotations) (download)
Sun Sep 12 05:49:52 2010 UTC (11 years, 2 months ago) by rvvs89
File size: 1461 byte(s)
Improved prototype GUI significantly.
Replaced horrible programmer art with icons from the Crystal project as place holders.
1 using PlaybackPlugin.Properties;
2 using System;
3 using System.Collections.Generic;
4 using System.Drawing;
5 using System.Text;
6 using ZoneFiveSoftware.Common.Data.Fitness;
7 using ZoneFiveSoftware.Common.Visuals;
8 using ZoneFiveSoftware.Common.Visuals.Fitness;
9
10 namespace PlaybackPlugin.Source
11 {
12 class PlaybackAction : IAction
13 {
14 private IActivity activity;
15 private IDailyActivityView view;
16
17 public PlaybackAction(IDailyActivityView view)
18 {
19 this.view = view;
20 }
21
22 public bool Enabled
23 {
24 get { return true; }
25 }
26
27 public bool HasMenuArrow
28 {
29 get { return false; }
30 }
31
32 public Image Image
33 {
34 get { return Properties.Resources.PlayIcon16; }
35 }
36
37 public IList<string> MenuPath
38 {
39 get { return null; }
40 }
41
42 public void Refresh()
43 {
44 }
45
46 public void Run(System.Drawing.Rectangle rectButton)
47 {
48 PlaybackDialog control = new PlaybackDialog(activity);
49 control.Show();
50 }
51
52 public string Title
53 {
54 get { return Resources.PlaybackBannerText; }
55 }
56
57 public bool Visible
58 {
59 get { return true; }
60 }
61
62 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
63 }
64 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26