使用SaveAppointmentTask无需预览和确认。 [英] Using SaveAppointmentTask without preview and confirmation.
问题描述
我正在尝试使用 SaveAppointmentTask将多个任务添加到日历中。 有没有办法让用户不必确认并保存任务? 我希望应用只是在没有用户参与的情况下添加任务。
Hi, i'm trying to use SaveAppointmentTask to add several tasks to the calendar. Is there a way to do it so the user does not have to confirm and save the task? I want the app to just add the task without user involvement.
private void button2_Click(object sender,RoutedEventArgs e)
      {
          SaveAppointmentTask saveAppointmentTask = new SaveAppointmentTask();
          saveAppointmentTask.StartTime = Convert.ToDateTime(textBlock5.Text); // DateTime.Now.AddHours(2);
          saveAppointmentTask.EndTime = Convert.ToDateTime(textBlock5.Text).AddHours(1); // DateTime.Now.AddHours(1);
          saveAppointmentTask.Subject =" Chodesh Seperation"; $
          saveAppointmentTask.Location =" Appointment location"; $
          saveAppointmentTask.Details ="约会详情";
          saveAppointmentTask.IsAllDayEvent = false;
          saveAppointmentTask.Reminder = Reminder.FifteenMinutes;
          saveAppointmentTask.AppointmentStatus = Microsoft.Phone.UserData.AppointmentStatus.Busy;
          saveAppointmentTask.Show();
      }
private void button2_Click(object sender, RoutedEventArgs e)
{
SaveAppointmentTask saveAppointmentTask = new SaveAppointmentTask();
saveAppointmentTask.StartTime = Convert.ToDateTime(textBlock5.Text);// DateTime.Now.AddHours(2);
saveAppointmentTask.EndTime = Convert.ToDateTime(textBlock5.Text).AddHours(1); // DateTime.Now.AddHours(1);
saveAppointmentTask.Subject = "Chodesh Seperation";
saveAppointmentTask.Location = "Appointment location";
saveAppointmentTask.Details = "Appointment details";
saveAppointmentTask.IsAllDayEvent = false;
saveAppointmentTask.Reminder = Reminder.FifteenMinutes;
saveAppointmentTask.AppointmentStatus = Microsoft.Phone.UserData.AppointmentStatus.Busy;
saveAppointmentTask.Show();
}
非常感谢。
Aron
感谢Aron www。 EvidenceForTorah.comxa.com
Thanks Aron www.EvidenceForTorah.comxa.com
推荐答案
出于安全原因,您无法通过用户互动添加约会
for security reasons you can not add an appointment with out user interaction
这篇关于使用SaveAppointmentTask无需预览和确认。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!