diff --git a/CampusAppWP8/CampusAppWP8/Feed/TimeTable/AppointmentFeed.cs b/CampusAppWP8/CampusAppWP8/Feed/TimeTable/AppointmentFeed.cs index e72ab883..9f166c89 100644 --- a/CampusAppWP8/CampusAppWP8/Feed/TimeTable/AppointmentFeed.cs +++ b/CampusAppWP8/CampusAppWP8/Feed/TimeTable/AppointmentFeed.cs @@ -78,7 +78,7 @@ namespace CampusAppWP8.Feed.TimeTable for (int i = 0; i < appStr.Length; i++) { - if (appStr.Length > 0) + if (appStr[i].Length > 0) { appStr[i] = appStr[i].Replace("", string.Empty); diff --git a/CampusAppWP8/CampusAppWP8/Pages/TimeTable/TimeTable.cs b/CampusAppWP8/CampusAppWP8/Pages/TimeTable/TimeTable.cs index 977bd6c2..5d23d8e8 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/TimeTable/TimeTable.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/TimeTable/TimeTable.cs @@ -24,16 +24,6 @@ namespace CampusAppWP8.Pages.TimeTable public partial class TimeTable : PhoneApplicationPage { - private static AppointmentListModel appList //= null; - = new AppointmentListModel(new AppointmentModel[] { - new AppointmentModel("BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:ownCloud Calendar 0.6.3\r\nX-WR-CALNAME:Das is der Titel\r\nBEGIN:VEVENT\r\nCREATED;VALUE=DATE-TIME:20130827T113216Z\r\nUID:c9904ea73c\r\nLAST-MODIFIED;VALUE=DATE-TIME:20130827T113216Z\r\nDTSTAMP;VALUE=DATE-TIME:20130827T113216Z\r\nSUMMARY:Das is der Titel\r\nDTSTART;VALUE=DATE-TIME:20131023T113500Z\r\nDTEND;VALUE=DATE-TIME:20131023T212000Z\r\nCLASS:PUBLIC\r\nLOCATION:BTU Campus\r\nDESCRIPTION:For Outlook 2003, the behavior is peculiar. It can save the sa\r\n me calendar entry in both .ics and .vcs format, but it only read & displa\r\n y .vcs file correctly. It can read .ics file but it omits some fields and \r\n does not display it in calendar mode. My guess is that back then Microsoft\r\n wanted to provide .ics to be compatible with Mac's iCal but not quite com\r\n mitted to v2.0 yet.\r\nCATEGORIES:Projekte\r\nEND:VEVENT\r\nEND:VCALENDAR"), - new AppointmentModel("BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:http://www.example.com/calendarapplication/\r\nMETHOD:PUBLISH\r\nBEGIN:VEVENT\r\nUID:461092315540@example.com\r\nORGANIZER:MAILTO:alice@example.com\r\nLOCATION:Somewhere\r\nSUMMARY:Eine Kurzinfo welche einen etwas längeren titel enthält\r\nDESCRIPTION:Beschreibung des Termines\r\nCLASS:PUBLIC\r\nDTSTART:20131023T110000Z\r\nDTEND:20131024T113000Z\r\nDTSTAMP:20131003T125900Z\r\nPRIORITY:3\r\nEND:VEVENT\r\nEND:VCALENDAR"), - new AppointmentModel("BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//hacksw/handcal//NONSGML v1.0//EN\r\nBEGIN:VEVENT\r\nUID:uid1@example.com\r\nDTSTAMP:19970714T170000Z\r\nORGANIZER;CN=John Doe:MAILTO:john.doe@example.com\r\nDTSTART:20131025T150000Z\r\nDTEND:20131025T170000Z\r\nSUMMARY:Bastille Day Party\r\nEND:VEVENT\r\nEND:VCALENDAR"), - new AppointmentModel("BEGIN:VCALENDAR\r\nVERSION:1.0\r\nBEGIN:VEVENT\r\nCATEGORIES:MEETING\r\nSTATUS:TENTATIVE\r\nDTSTART:20130917T033000Z\r\nDTEND:20130917T043000Z\r\nSUMMARY:Your Proposal Review\r\nDESCRIPTION:Steve and John to review newest proposal material bla fsdfasfsdfsdfgsdafg sfdgfdsgf dsfg dsfgds fgds\r\nCLASS:PRIVATE\r\nEND:VEVENT\r\nEND:VCALENDAR"), - new AppointmentModel("BEGIN:VCALENDAR\r\nPRODID:-//bobbin v0.1//NONSGML iCal Writer//EN\r\nVERSION:2.0\r\nCALSCALE:GREGORIAN\r\nMETHOD:PUBLISH\r\nBEGIN:VEVENT\r\nDTSTART:20130918T080000Z\r\nDTEND:20130918T110000Z\r\nDTSTAMP:20091130T213238Z\r\nUID:1285935469767a7c7c1a9b3f0df8003a@yoursever.com\r\nCREATED:20091130T213238Z\r\nDESCRIPTION:Example event 1\r\nLAST-MODIFIED:20091130T213238Z\r\nSEQUENCE:0\r\nSTATUS:CONFIRMED\r\nSUMMARY:Example event 1\r\nTRANSP:OPAQUE\r\nEND:VEVENT\r\nEND:VCALENDAR"), - new AppointmentModel("BEGIN:VCALENDAR\r\nPRODID:-//bobbin v0.1//NONSGML iCal Writer//EN\r\nVERSION:2.0\r\nCALSCALE:GREGORIAN\r\nMETHOD:PUBLISH\r\nBEGIN:VEVENT\r\nDTSTART:20130914T120000Z\r\nDTEND:20130914T140000Z\r\nDTSTAMP:20091130T213238Z\r\nUID:1285935469767a7c7c1a9b3f0df8003a@yoursever.com\r\nCREATED:20091130T213238Z\r\nDESCRIPTION:Example event 1\r\nLAST-MODIFIED:20091130T213238Z\r\nSEQUENCE:0\r\nSTATUS:CONFIRMED\r\nSUMMARY:Example event 1\r\nTRANSP:OPAQUE\r\nEND:VEVENT\r\nEND:VCALENDAR") - }); - public static int Setting_AutoScrollToHour = 7; public static int Setting_VisualScale = 0; //0 - small, 1 - medium, 2 - large UNUSED ATM public static double Setting_Hour_Spacing = 40; diff --git a/CampusAppWP8/CampusAppWP8/Pages/TimeTable/TimeTableWeek.xaml.cs b/CampusAppWP8/CampusAppWP8/Pages/TimeTable/TimeTableWeek.xaml.cs index 993ca036..2d4a0c76 100644 --- a/CampusAppWP8/CampusAppWP8/Pages/TimeTable/TimeTableWeek.xaml.cs +++ b/CampusAppWP8/CampusAppWP8/Pages/TimeTable/TimeTableWeek.xaml.cs @@ -149,34 +149,26 @@ namespace CampusAppWP8.Pages.TimeTable private void OnClickDayView(object sender, EventArgs e) { - /********* REMOVED FOR TESTING ******** Uri url = new Uri(Constants.PathTimeTable_Day, UriKind.Relative); Page page = App.RootFrame.Content as Page; page.NavigationService.Navigate(url); - */ -// this.itemPages[this.ThePivot.SelectedIndex].weekView.SetColumnBackground(0, new SolidColorBrush(Colors.Red)); - (this.ThePivot.SelectedItem as WeekViewPageItem).AppointmentList.Add(TimeTable.Feed.Model.Appointments[1]); } private void OnClickToday(object sender, EventArgs e) { - /******* REMOVED FOR TESTING ******** DateTime firstDay = this.GetFirstDayOfWeek(DateTime.Now).AddDays(-7 * PIVOT_PAGES_HALF_DOWN); this.ThePivot.SelectedIndex = PIVOT_PAGES_HALF_DOWN; for (int i = 0; i < PIVOT_PAGES; i++) { - this.itemPages[i].DateFrom = firstDay; - this.itemPages[i].DateTo = this.itemPages[i].DateFrom.AddDays(6); - this.itemPages[i].WeekNumber = this.GetWeekNumber(this.itemPages[i].DateFrom); - this.itemPages[i].WeekChar = ((this.itemPages[i].WeekNumber % 2) == 0) ? 'B' : 'A'; + this.itemList[i].FromDT = firstDay; + this.itemList[i].ToDT = this.itemList[i].FromDT.AddDays(6); + this.itemList[i].WeekNr = this.GetWeekNumber(this.itemList[i].FromDT); + this.itemList[i].WeekStr = ((this.itemList[i].WeekNr % 2) == 0) ? "B" : "A"; firstDay = firstDay.AddDays(7); - - this.SetupPage(i); } - */ - //this.itemPages[this.ThePivot.SelectedIndex].weekView.SetColumnBackground(0); + //maybe FIXME } private void OnClickProperties(object sender, EventArgs e) @@ -328,8 +320,6 @@ namespace CampusAppWP8.Pages.TimeTable this.itemList[i].AppointmentList.Add(tempModel); } } - - TimeTable.Feed.SaveData(true); } else if (e.Action == NotifyCollectionChangedAction.Remove) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSClasses.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSClasses.cs index 220ba6e9..2b9b2493 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSClasses.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSClasses.cs @@ -204,16 +204,16 @@ namespace CampusAppWP8.Utility int val = 0; char typeChar; - for (int i = 0; i < durStr.Length; i++) + for (int i = 0; i < str.Length; i++) { - if (durStr[i] >= '0' && durStr[i] <= '9') + if (str[i] >= '0' && str[i] <= '9') { val *= 10; - val += durStr[0] - '0'; + val += str[i] - '0'; } else { - typeChar = durStr[i]; + typeChar = str[i]; retValue.Add(new Tuple(val, typeChar)); val = 0; } @@ -276,6 +276,8 @@ namespace CampusAppWP8.Utility /// Fiedler, 05.09.2013. public abstract class Interface { + protected string privateName = string.Empty; + /// Sets the property/class values. Used for import from a ICS file. /// Fiedler, 05.09.2013. /// The value string. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSManager.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSManager.cs index 530c876c..b07a1d12 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSManager.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSManager.cs @@ -48,52 +48,55 @@ namespace CampusAppWP8.Utility foreach (string e in elems) { - ContentLine prop = ICSManager.ToContentLine(e); - ICSDict.ICSElemDesc tempElem = null; - - if ((tempElem = parentList.Last().GetValue(prop.Name)) != null) + if (e.Length > 0) { - object propObj = tempElem.CreateObj(prop.ValueString, (prop.ParamList == null) ? null : prop.ParamList.ToArray()); + ContentLine prop = ICSManager.ToContentLine(e); + ICSDict.ICSElemDesc tempElem = null; - if (ICSManager.Is((propObj as ICSClasses.Interface).GetName(), ICSTag.BEGIN)) + if ((tempElem = parentList.Last().GetValue(prop.Name)) != null) { - retPointer = new ICalObject(); + object propObj = tempElem.CreateObj(prop.ValueString, (prop.ParamList == null) ? null : prop.ParamList.ToArray()); - if (retValue == null) + if (ICSManager.Is((propObj as ICSClasses.Interface).GetName(), ICSTag.BEGIN)) { - retValue = retPointer; + retPointer = new ICalObject(); + + if (retValue == null) + { + retValue = retPointer; + } + else + { + // FIXME + retValue.PropertieList.Add(retPointer); + } + + retPointer.Header = propObj as ICSProperties.Begin; + + parentList.Add(ICSManager.GetSubValue((propObj as ICSProperties.Begin).Value, tempElem)); + } + else if (ICSManager.Is((propObj as ICSClasses.Interface).GetName(), ICSTag.END)) + { + if (ICSManager.GetSubValue((propObj as ICSProperties.End).Value, tempElem) != null) + { + parentList.RemoveAt(parentList.Count - 1); + } } else { - // FIXME - retValue.PropertieList.Add(retPointer); + retPointer.PropertieList.Add(propObj); } - - retPointer.Header = propObj as ICSProperties.Begin; - - parentList.Add(ICSManager.GetSubValue((propObj as ICSProperties.Begin).Value, tempElem)); } - else if (ICSManager.Is((propObj as ICSClasses.Interface).GetName(), ICSTag.END)) + else { - if (ICSManager.GetSubValue((propObj as ICSProperties.End).Value, tempElem) != null) + if (prop.Name.IndexOf("X-") == 0) { - parentList.RemoveAt(parentList.Count - 1); + // TODO + } + else + { + throw new NotSupportedException("Tag (" + prop.Name + ") was not found in (" + parentList.Last().Name + ")"); } - } - else - { - retPointer.PropertieList.Add(propObj); - } - } - else - { - if (prop.Name.IndexOf("X-") == 0) - { - // TODO - } - else - { - throw new NotSupportedException("Tag (" + prop.Name + ") was not found in (" + parentList.Last().Name + ")"); } } } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/AccessClass.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/AccessClass.cs index d6a34996..e6a905f1 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/AccessClass.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/AccessClass.cs @@ -41,6 +41,7 @@ namespace CampusAppWP8.Utility.ICSProperties ICSValue.PRIVATE, ICSValue.CONFIDENTIAL }); + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -76,7 +77,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList.Count() > 0) { - throw new NotSupportedException("in (" + Name + ") is no param supported"); + throw new NotSupportedException("in (" + this.privateName + ") is no param supported"); } } @@ -95,7 +96,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// The string. public override string GetString() { - return Name + ":" + this.value; + return this.privateName + ":" + this.value; } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Action.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Action.cs index dd4e6bd1..4a46dfaf 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Action.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Action.cs @@ -40,6 +40,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Action() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -95,7 +96,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Attachment.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Attachment.cs index 2b14f9ae..b532e9d2 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Attachment.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Attachment.cs @@ -49,6 +49,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Attachment() { + this.privateName = this.GetName(); } /// Gets or sets the value bytes. @@ -182,7 +183,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (this.formatType.Equals(string.Empty) == false) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Attendee.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Attendee.cs index 84cc2719..b67cec23 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Attendee.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Attendee.cs @@ -56,6 +56,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Attendee() { this.paramList = new List>(); + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -112,7 +113,7 @@ namespace CampusAppWP8.Utility.ICSProperties if (p.Count() != 2) { - throw new FormatException("unsupported param format (" + paramStrList + ") in (" + Name + ")"); + throw new FormatException("unsupported param format (" + paramStrList + ") in (" + this.privateName + ")"); } if (ICSClasses.CheckParamAndParamValue(p[0], p[1], PParams.ToArray())) @@ -121,7 +122,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("unsupported param (" + paramStrList[i] + ") in (" + Name + ")"); + throw new NotSupportedException("unsupported param (" + paramStrList[i] + ") in (" + this.privateName + ")"); } } } @@ -136,7 +137,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; for (int i = 0; i < this.paramList.Count(); i++) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Begin.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Begin.cs index 26f41c25..6abcff3f 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Begin.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Begin.cs @@ -46,6 +46,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Begin() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -99,7 +100,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/CalendarScale.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/CalendarScale.cs index ca0f8242..da4eb9fd 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/CalendarScale.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/CalendarScale.cs @@ -38,6 +38,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public CalendarScale() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -91,7 +92,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Categories.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Categories.cs index 17f6a194..37a3a393 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Categories.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Categories.cs @@ -38,6 +38,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Categories() { this.valueList = new List(); + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -114,7 +115,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (this.languageType.Equals(string.Empty) == false) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Comment.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Comment.cs index cc59ffc1..8b5d2b7f 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Comment.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Comment.cs @@ -41,6 +41,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Comment() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -132,7 +133,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (this.altrep.Equals(string.Empty) == false) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Contact.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Contact.cs index 338f85ee..3d1a9558 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Contact.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Contact.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Contact() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTCompleted.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTCompleted.cs index 15475618..4b768435 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTCompleted.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTCompleted.cs @@ -30,6 +30,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public DTCompleted() { + this.privateName = this.GetName(); } /// Gets or sets the Date/Time of the value. @@ -60,7 +61,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } } @@ -73,7 +74,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } this.value = ICSClasses.UTCStringToDateTime(valueStr); @@ -86,7 +87,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + ICSClasses.DateTimeToString(this.value); + retValue += this.privateName + ":" + ICSClasses.DateTimeToString(this.value); return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTCreated.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTCreated.cs index d4cc1e57..3b7e3363 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTCreated.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTCreated.cs @@ -40,6 +40,7 @@ namespace CampusAppWP8.Utility.ICSProperties public DTCreated() { this.paramList = new List>(); + this.privateName = this.GetName(); } /// Gets or sets the Date/Time of the value. @@ -95,7 +96,7 @@ namespace CampusAppWP8.Utility.ICSProperties if (p.Count() != 2) { - throw new FormatException("unsupported param format (" + paramStrList + ") in (" + Name + ")"); + throw new FormatException("unsupported param format (" + paramStrList + ") in (" + this.privateName + ")"); } if (ICSClasses.CheckParamAndParamValue(p[0], p[1], PParams.ToArray())) @@ -104,7 +105,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("unsupported param (" + paramStrList[i] + ") in (" + Name + ")"); + throw new NotSupportedException("unsupported param (" + paramStrList[i] + ") in (" + this.privateName + ")"); } } } @@ -119,7 +120,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + ICSClasses.DateTimeToString(this.value); + retValue += this.privateName + ":" + ICSClasses.DateTimeToString(this.value); return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTDue.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTDue.cs index f2ba8dc1..b0fccd20 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTDue.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTDue.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public DTDue() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTEnd.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTEnd.cs index cd3e321e..26aa2840 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTEnd.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTEnd.cs @@ -41,6 +41,7 @@ namespace CampusAppWP8.Utility.ICSProperties public DTEnd() { this.paramList = new List>(); + this.privateName = this.GetName(); } /// Gets or sets the Date/Time of the value. @@ -135,7 +136,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList.Count() > 2) { - throw new NotSupportedException("too many params in (" + Name + ")"); + throw new NotSupportedException("too many params in (" + this.privateName + ")"); } for (int i = 0; i < paramStrList.Count(); i++) @@ -162,7 +163,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("param (" + p[0] + ") is not supported in (" + Name + ")"); + throw new NotSupportedException("param (" + p[0] + ") is not supported in (" + this.privateName + ")"); } } } @@ -178,7 +179,7 @@ namespace CampusAppWP8.Utility.ICSProperties if (isDate != tempIsDate) { - throw new NotSupportedException("time value has not the same type as declared in param in(" + Name + ")"); + throw new NotSupportedException("time value has not the same type as declared in param in(" + this.privateName + ")"); } this.value = ICSClasses.UTCStringToDateTime(valueStr); @@ -191,7 +192,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; for (int i = 0; i < this.paramList.Count(); i++) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTException.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTException.cs index f1afeaa3..07eb720c 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTException.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTException.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public DTException() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTRecurrence.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTRecurrence.cs index 0d035cc5..26663b11 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTRecurrence.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTRecurrence.cs @@ -42,6 +42,7 @@ namespace CampusAppWP8.Utility.ICSProperties { this.values = new List>(); this.paramList = new List>(); + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -120,7 +121,7 @@ namespace CampusAppWP8.Utility.ICSProperties if (p.Count() != 2) { - throw new FormatException("unsupported param format (" + paramStrList + ") in (" + Name + ")"); + throw new FormatException("unsupported param format (" + paramStrList + ") in (" + this.privateName + ")"); } if (ICSClasses.CheckParamAndParamValue(p[0], p[1], PParams.ToArray())) @@ -129,7 +130,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("unsupported param (" + paramStrList[0] + ") in (" + Name + ")"); + throw new NotSupportedException("unsupported param (" + paramStrList[0] + ") in (" + this.privateName + ")"); } } } @@ -188,7 +189,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; for (int i = 0; i < this.paramList.Count(); i++) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTStamp.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTStamp.cs index d9ac331c..bba7d3a7 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTStamp.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTStamp.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public DTStamp() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTStart.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTStart.cs index 2bb9ea50..55af1ac0 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTStart.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/DTStart.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public DTStart() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Description.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Description.cs index 753a57c7..dda4b1d0 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Description.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Description.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Description() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Duration.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Duration.cs index ffb5a9f4..7515fbc7 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Duration.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Duration.cs @@ -33,6 +33,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Duration() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -83,7 +84,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("params are not supported in (" + Name + ")"); + throw new NotSupportedException("params are not supported in (" + this.privateName + ")"); } if (valueStr[0].Equals('-') || valueStr[0].Equals('+')) @@ -102,7 +103,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + ICSClasses.TimeSpanToString(this.value, this.isNegative); + retValue += this.privateName + ":" + ICSClasses.TimeSpanToString(this.value, this.isNegative); return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/End.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/End.cs index 024be530..694dbea5 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/End.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/End.cs @@ -43,6 +43,7 @@ namespace CampusAppWP8.Utility.ICSProperties public End() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/FreeBusyTime.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/FreeBusyTime.cs index 93b3557f..6b0467e4 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/FreeBusyTime.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/FreeBusyTime.cs @@ -40,6 +40,7 @@ namespace CampusAppWP8.Utility.ICSProperties public FreeBusyTime() { this.valueList = new List>(); + this.privateName = this.GetName(); } /// Gets or sets a list of values. @@ -91,7 +92,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList.Count() > 1) { - throw new NotSupportedException("there is only 1 param in (" + Name + ") supported"); + throw new NotSupportedException("there is only 1 param in (" + this.privateName + ") supported"); } string[] p = paramStrList[0].Split('='); @@ -161,7 +162,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (!this.freebusyType.Equals(string.Empty)) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Geo.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Geo.cs index a15ffc72..26b6b650 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Geo.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Geo.cs @@ -31,6 +31,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Geo() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -61,7 +62,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } } @@ -75,7 +76,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } string[] valSplit = valueStr.Split(';'); @@ -96,11 +97,11 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (this.value == null) { - throw new NotSupportedException("there is no value set for (" + Name + ")"); + throw new NotSupportedException("there is no value set for (" + this.privateName + ")"); } retValue += ":" + this.value.Item1.ToString() + ";" + this.value.Item2.ToString(); diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/LastModified.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/LastModified.cs index bcff42bc..c4a3e960 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/LastModified.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/LastModified.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public LastModified() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Location.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Location.cs index 9225558c..38dde24a 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Location.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Location.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Location() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Method.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Method.cs index 8e41ecc3..197de8f3 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Method.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Method.cs @@ -31,6 +31,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Method() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -70,7 +71,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Organizer.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Organizer.cs index 0bfbac3e..279d3f32 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Organizer.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Organizer.cs @@ -34,6 +34,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Organizer() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/PercentComplete.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/PercentComplete.cs index b2351ca5..b7295ee0 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/PercentComplete.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/PercentComplete.cs @@ -30,6 +30,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public PercentComplete() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -49,7 +50,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new ArgumentOutOfRangeException("value must be in rang of [0..100] in (" + Name + ")"); + throw new ArgumentOutOfRangeException("value must be in rang of [0..100] in (" + this.privateName + ")"); } } } @@ -67,7 +68,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } } @@ -80,7 +81,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } this.value = int.Parse(valueStr); @@ -94,11 +95,11 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (this.value < 0) { - throw new NotSupportedException("there is no value set for (" + Name + ")"); + throw new NotSupportedException("there is no value set for (" + this.privateName + ")"); } retValue += ":" + this.value.ToString(); diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Priority.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Priority.cs index 6f6d1010..3d5dd93f 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Priority.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Priority.cs @@ -30,6 +30,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Priority() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -49,7 +50,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new ArgumentOutOfRangeException("value must be in rage of [0..9] in (" + Name + ")"); + throw new ArgumentOutOfRangeException("value must be in rage of [0..9] in (" + this.privateName + ")"); } } } @@ -67,7 +68,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } } @@ -83,14 +84,14 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } this.value = int.Parse(valueStr); if ((this.value < 0) || (this.value > 9)) { - throw new ArgumentOutOfRangeException("value must be in the range of [0..9] in (" + Name + ")"); + throw new ArgumentOutOfRangeException("value must be in the range of [0..9] in (" + this.privateName + ")"); } } @@ -102,11 +103,11 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (this.value < 0 || this.value > 9) { - throw new NotSupportedException("there is no value set for (" + Name + ")"); + throw new NotSupportedException("there is no value set for (" + this.privateName + ")"); } retValue += ":" + this.value.ToString(); diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/ProductID.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/ProductID.cs index a6d32830..1b6c67ba 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/ProductID.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/ProductID.cs @@ -31,6 +31,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public ProductID() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -70,7 +71,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RecurrenceID.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RecurrenceID.cs index fda0a69c..8b51d8b5 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RecurrenceID.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RecurrenceID.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public RecurrenceID() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RecurrenceRule.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RecurrenceRule.cs index ac5f2293..84857e52 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RecurrenceRule.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RecurrenceRule.cs @@ -58,6 +58,7 @@ namespace CampusAppWP8.Utility.ICSProperties public RecurrenceRule() { this.values = new List>>(); + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -119,7 +120,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":"; + retValue += this.privateName + ":"; for (int i = 0; i < this.values.Count(); i++) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RelatedTo.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RelatedTo.cs index a703a01d..dd1f48c0 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RelatedTo.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RelatedTo.cs @@ -39,6 +39,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public RelatedTo() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -98,7 +99,7 @@ namespace CampusAppWP8.Utility.ICSProperties if (p.Count() != 2) { - throw new FormatException("unsupported param format (" + paramStrList + ") in (" + Name + ")"); + throw new FormatException("unsupported param format (" + paramStrList + ") in (" + this.privateName + ")"); } if (ICSClasses.CheckParamAndParamValue(p[0], p[1], PParams.ToArray())) @@ -107,7 +108,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("unsupported param (" + paramStrList[0] + ") in (" + Name + ")"); + throw new NotSupportedException("unsupported param (" + paramStrList[0] + ") in (" + this.privateName + ")"); } } } @@ -122,7 +123,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (!this.realType.Equals(string.Empty)) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RepeatCount.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RepeatCount.cs index ce747510..9e38904c 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RepeatCount.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RepeatCount.cs @@ -31,6 +31,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public RepeatCount() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -75,7 +76,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value.ToString(); + retValue += this.privateName + ":" + this.value.ToString(); return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RequestStatus.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RequestStatus.cs index adad86bd..48f24486 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RequestStatus.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/RequestStatus.cs @@ -42,6 +42,7 @@ namespace CampusAppWP8.Utility.ICSProperties { this.paramList = new List>(); this.valueList = new List(); + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -142,7 +143,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; for (int i = 0; i < this.paramList.Count(); i++) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Resources.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Resources.cs index cb576669..53ab9506 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Resources.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Resources.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Resources() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/SequenceNumber.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/SequenceNumber.cs index a1dea60f..43926020 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/SequenceNumber.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/SequenceNumber.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public SequenceNumber() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Status.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Status.cs index baa5c432..962348a5 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Status.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Status.cs @@ -63,6 +63,7 @@ namespace CampusAppWP8.Utility.ICSProperties ICSValue.FINAL, ICSValue.CANCELLED }); + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -84,7 +85,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("value (" + value + ") is not supported in (" + Name + ")"); + throw new NotSupportedException("value (" + value + ") is not supported in (" + this.privateName + ")"); } } } @@ -102,7 +103,7 @@ namespace CampusAppWP8.Utility.ICSProperties } else { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } } @@ -115,14 +116,14 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("parameter are not supported in (" + Name + ")"); + throw new NotSupportedException("parameter are not supported in (" + this.privateName + ")"); } if ((this.ValueListEvent.IndexOf(valueStr) < 0) && (this.ValueListToDo.IndexOf(valueStr) < 0) && (this.ValueListJournal.IndexOf(valueStr) < 0)) { - throw new NotSupportedException("value (" + valueStr + ") is not supported in (" + Name + ")"); + throw new NotSupportedException("value (" + valueStr + ") is not supported in (" + this.privateName + ")"); } this.value = valueStr; @@ -135,7 +136,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Summary.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Summary.cs index 73512d7b..fab4f6da 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Summary.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Summary.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Summary() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeTransparency.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeTransparency.cs index c2d93c31..cb9c65b5 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeTransparency.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeTransparency.cs @@ -39,6 +39,7 @@ namespace CampusAppWP8.Utility.ICSProperties ICSValue.OPAQUE, ICSValue.TRANSPARENT }); + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -81,7 +82,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("params are not supported in (" + Name + ")"); + throw new NotSupportedException("params are not supported in (" + this.privateName + ")"); } if (this.ValueList.IndexOf(valueStr) < 0) @@ -99,7 +100,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneIdentifier.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneIdentifier.cs index e3d465d4..3c3a78e4 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneIdentifier.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneIdentifier.cs @@ -30,6 +30,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public TimeZoneIdentifier() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -65,7 +66,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("params are not supported in (" + Name + ")"); + throw new NotSupportedException("params are not supported in (" + this.privateName + ")"); } this.value = valueStr; @@ -78,7 +79,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneName.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneName.cs index 071c1ea8..b4f7f0a4 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneName.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneName.cs @@ -37,6 +37,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public TimeZoneName() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -81,7 +82,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList.Count() > 1) { - throw new NotSupportedException("there is only 1 param supported in (" + Name + ")"); + throw new NotSupportedException("there is only 1 param supported in (" + this.privateName + ")"); } if (paramStrList.Count() == 1) @@ -114,7 +115,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; if (!this.language.Equals(string.Empty)) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneOffsetFrom.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneOffsetFrom.cs index 96f0d6d1..3b8e9c26 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneOffsetFrom.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneOffsetFrom.cs @@ -33,6 +33,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public TimeZoneOffsetFrom() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -84,7 +85,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("no param supported in (" + Name + ")"); + throw new NotSupportedException("no param supported in (" + this.privateName + ")"); } if (valueStr[0].Equals('+')) @@ -110,7 +111,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + (this.isNegative ? "-" : "+") + string.Format("{0:HHmm}", this.value); + retValue += this.privateName + ":" + (this.isNegative ? "-" : "+") + string.Format("{0:HHmm}", this.value); return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneOffsetTo.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneOffsetTo.cs index 0a07775f..68516374 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneOffsetTo.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneOffsetTo.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public TimeZoneOffsetTo() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneUrl.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneUrl.cs index c6d7635d..767d368f 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneUrl.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/TimeZoneUrl.cs @@ -30,6 +30,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public TimeZoneUrl() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -65,7 +66,7 @@ namespace CampusAppWP8.Utility.ICSProperties { if (paramStrList != null) { - throw new NotSupportedException("no param supported in (" + Name + ")"); + throw new NotSupportedException("no param supported in (" + this.privateName + ")"); } this.value = valueStr; @@ -78,7 +79,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":" + this.value; + retValue += this.privateName + ":" + this.value; return retValue; } diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Trigger.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Trigger.cs index 055dfdb1..89734797 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Trigger.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Trigger.cs @@ -49,6 +49,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Trigger() { this.paramList = new List>(); + this.privateName = this.GetName(); } /// Gets or sets the Date/Time of the value. @@ -164,7 +165,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name; + retValue += this.privateName; for (int i = 0; i < this.paramList.Count(); i++) { diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/UniqueID.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/UniqueID.cs index cfc8fbad..bfe99bfd 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/UniqueID.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/UniqueID.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public UniqueID() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Url.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Url.cs index 597be46e..589f4cad 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Url.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Url.cs @@ -22,6 +22,7 @@ namespace CampusAppWP8.Utility.ICSProperties public Url() : base() { + this.privateName = this.GetName(); } /// Gets the name. diff --git a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Version.cs b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Version.cs index 4310e911..39e4f55c 100644 --- a/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Version.cs +++ b/CampusAppWP8/CampusAppWP8/Utility/ICSProperties/Version.cs @@ -34,6 +34,7 @@ namespace CampusAppWP8.Utility.ICSProperties /// Fiedler, 05.09.2013. public Version() { + this.privateName = this.GetName(); } /// Gets or sets the value. @@ -132,7 +133,7 @@ namespace CampusAppWP8.Utility.ICSProperties { string retValue = string.Empty; - retValue += Name + ":"; + retValue += this.privateName + ":"; if (this.minVer >= 0.0f) {