/[cits3200i]/branches/gps-running-clean-r116/HighScorePlugin/Source/HighScorePage.cs


UCC Code Repository

Contents of /branches/gps-running-clean-r116/HighScorePlugin/Source/HighScorePage.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5 - (show annotations) (download)
Sun Sep 5 15:48:34 2010 UTC (11 years, 3 months ago) by rvvs89
File size: 2849 byte(s)
Branching a local copy of the HEAD revision of the gps-running project on Google Code.
We will probably have to use this project as a template for our own plugins if we want to support SportTracks 2.1.
1 /*
2 Copyright (C) 2007, 2008 Kristian Bisgaard Lassen
3 Copyright (C) 2010 Kristian Helkjaer Lassen
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 3 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 using System;
20 using System.Collections.Generic;
21 using System.Text;
22 using ZoneFiveSoftware.Common.Visuals;
23 using GpsRunningPlugin.Properties;
24
25 namespace GpsRunningPlugin.Source
26 {
27 class HighScorePage : ISettingsPage
28 {
29 private HighScoreSettingPageControl control = null;
30
31 #region ISettingsPage Members
32
33 public Guid Id
34 {
35 get
36 {
37 Plugin plugin = new GpsRunningPlugin.Plugin();
38 return plugin.Id;
39 }
40 }
41
42 public IList<ISettingsPage> SubPages
43 {
44 get { return new List<ISettingsPage>(); }
45 }
46
47 #endregion
48
49 #region IDialogPage Members
50
51 public System.Windows.Forms.Control CreatePageControl()
52 {
53 if (control == null)
54 {
55 control = new HighScoreSettingPageControl();
56 }
57 return control;
58 }
59
60 public bool HidePage()
61 {
62 return true;
63 }
64
65 public string PageName
66 {
67 get { return Properties.Resources.ApplicationName; }
68 }
69
70 public void ShowPage(string bookmark)
71 {
72 }
73
74 public IPageStatus Status
75 {
76 get { return null; }
77 }
78
79 public void ThemeChanged(ITheme visualTheme)
80 {
81 if (control != null)
82 {
83 control.ThemeChanged(visualTheme);
84 }
85 }
86
87 public string Title
88 {
89 get { return Properties.Resources.ApplicationName; }
90 }
91
92 public void UICultureChanged(System.Globalization.CultureInfo culture)
93 {
94 if (control != null)
95 {
96 control.UICultureChanged(culture);
97 }
98 }
99
100 #endregion
101
102 #region INotifyPropertyChanged Members
103
104 #pragma warning disable 67
105 public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
106
107 #endregion
108 }
109 }

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26