Beispiel #1
0
 void actControl_Drop(object sender, DragEventArgs e)
 {
     if (e.Data.GetDataPresent(CommConst.DRAGED_TIMER_DATA))
     {
         UITimer    timer   = e.Data.GetData(CommConst.DRAGED_TIMER_DATA) as UITimer;
         Border     border  = sender as Border;
         AniControl control = GetActualControl(border);
         if (control is IUpdateData)
         {
             timer.AddUptateControl(control as IUpdateData);
             AddTimerIndicatorToControl(border.Child as Grid);
             e.Handled = true;
         }
     }
     else if (e.Data.GetDataPresent(CommConst.DRAGED_DATASOURCE))
     {
         DataSupplier ds = e.Data.GetData(CommConst.DRAGED_DATASOURCE) as DataSupplier;
         SetControlToListenDataSourceFieldUpdate(sender, ds);
     }
 }