Exemple #1
0
 /// <summary>
 /// Launches the save appointment task
 /// </summary>
 /// <param name="appt"></param>
 public void LaunchSaveAppointment(Event appt)
 {
     var task = new Microsoft.Phone.Tasks.SaveAppointmentTask();
     task.Subject = appt.Subject;
     task.Location = appt.Location;
     task.Details = appt.Details;
     task.StartTime = appt.StartTime;
     task.EndTime = appt.EndTime;
     task.IsAllDayEvent = false;
     task.Reminder = Microsoft.Phone.Tasks.Reminder.FifteenMinutes;
     task.AppointmentStatus = Microsoft.Phone.UserData.AppointmentStatus.Busy;
     task.Show();
 }
Exemple #2
0
 /// <summary>
 /// Launches the save appointment task
 /// </summary>
 /// <param name="date"></param>
 public void LaunchSaveAppointment(DateTime date)
 {
     var task = new Microsoft.Phone.Tasks.SaveAppointmentTask();
     task.StartTime = date;
     task.EndTime = task.StartTime.Value.AddHours(1);
     task.IsAllDayEvent = false;
     task.Reminder = Microsoft.Phone.Tasks.Reminder.FifteenMinutes;
     task.AppointmentStatus = Microsoft.Phone.UserData.AppointmentStatus.Busy;
     task.Show();
 }