/[cits3200i]/branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/EditMetadataControl.cs


UCC Code Repository

Diff of /branches/metadata-branch-rvvs89/UWAPlugins/MetadataPlugin/Source/EditMetadataControl.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 92 by rvvs89, Tue Oct 12 21:38:57 2010 UTC revision 93 by rvvs89, Tue Oct 12 22:22:23 2010 UTC
# Line 46  namespace MetadataPlugin.Source Line 46  namespace MetadataPlugin.Source
46                      locationField.Text = "Entire Track";                      locationField.Text = "Entire Track";
47                      break;                      break;
48                  case MetadataLocation.RANGE:                  case MetadataLocation.RANGE:
49                      locationField.Text = "Range of time";                      TimeSpan startOff = editor.Data.Point - activity.StartTime;
50                        TimeSpan endOff = editor.Data.End - activity.StartTime;
51                        locationField.Text = String.Format("{0}:{1:00}:{2:00} - {3}:{4:00}:{5:00}", startOff.Hours, startOff.Minutes, startOff.Seconds, endOff.Hours, endOff.Minutes, endOff.Seconds);
52                      break;                      break;
53                  case MetadataLocation.POINT:                  case MetadataLocation.POINT:
54                      locationField.Text = "Specific time";                      TimeSpan off = editor.Data.Point - activity.StartTime;
55                        locationField.Text = String.Format("{0}:{1:00}:{2:00}", off.Hours, off.Minutes, off.Seconds);
56                      break;                      break;
57              }              }
58              Control editorControl = editor.EditorControl;              Control editorControl = editor.EditorControl;

Legend:
Removed from v.92  
changed lines
  Added in v.93

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26