我使用 Telerik 演示调度程序作为我的基础,正如它在http://www.telerik.com/community/forums/wpf/scheduler/uniqueid-property-how-to-access-it.aspx中看到的 所以我已经实现了数据加载从 SQL 到这个调度器。现在我想实现拖放。那么,我怎样才能在调度程序上获得旧位置的预约值和新位置的值,以及最好的技术是什么?我将使用这些值来实现 SQL 中约会日期的更新。
问问题
1461 次
1 回答
0
private void OnAppointmentEdited(object sender, AppointmentEditedEventArgs e)
{
Appointment eAppo = e.Appointment as Appointment;
SessionAppointment ses = e.Appointment as SessionAppointment;
if(eAppo != null && ses != null)
{
DateTime dateStart = eAppo.Start; //new datestart
DateTime dateEnd = eAppo.End;//new dateend
string id = ses.UniqueId;//id
}
}
于 2009-12-18T15:37:37.493 回答