//Current appointment has changed void calendarApp_Changed(object sender, ChangeEventArgs args) { string testVar = ""; if (notificationStatus) { notification.Visible = true; notificationStatus = false; } Microsoft.WindowsMobile.PocketOutlook.Appointment currentApp = (Microsoft.WindowsMobile.PocketOutlook.Appointment)SystemState.CalendarAppointment; if (currentApp != null) //If Null, then current Appointment is deleted { if (gps != null) { if (gps.ZoneObj.getZoneID().ToString().Trim() == currentApp.Location.ToString().Trim()) { generateInformation(); } else { testVar = "nyVerdi"; } } } }
public AppointmentVO(Microsoft.WindowsMobile.PocketOutlook.Appointment app) { if (app != null) { _Id = app.ItemId.ToString(); _Subject = app.Subject; if (app.Categories != null) { _Category = app.Categories; } else { _Category = "1,2"; } _Start = app.Start.ToShortTimeString(); _Duration = app.Duration.Hours.ToString(); _Sensitivity = app.Sensitivity.ToString(); } }