Beispiel #1
0
 private void MainCalendarSquare_Drop(object sender, DragEventArgs e)
 {
     try
     {
         var item = DataPackageHelpers.GetViewItem <BaseViewItemHomeworkExam>(e.DataView);
         if (item != null)
         {
             OnRequestChangeItemDate?.Invoke(this, new ChangeItemDateEventArgs(item, this.Date.Date));
         }
     }
     catch (Exception ex)
     {
         TelemetryExtension.Current?.TrackException(ex);
     }
 }
Beispiel #2
0
 private void MainCalendarSquare_DragOver(object sender, DragEventArgs e)
 {
     try
     {
         var item = DataPackageHelpers.GetViewItem <BaseViewItemHomeworkExam>(e.DataView);
         if (item != null)
         {
             if (item.Date.Date != this.Date.Date)
             {
                 e.AcceptedOperation = Windows.ApplicationModel.DataTransfer.DataPackageOperation.Move;
             }
         }
     }
     catch (Exception ex)
     {
         TelemetryExtension.Current?.TrackException(ex);
     }
 }
Beispiel #3
0
 private void MainCalendarSquare_DragOver(object sender, DragEventArgs e)
 {
     try
     {
         var item = DataPackageHelpers.GetViewItem <ViewItemTaskOrEvent>(e.DataView);
         if (item != null)
         {
             if (item.EffectiveDateForDisplayInDateBasedGroups.Date != this.Date.Date)
             {
                 e.AcceptedOperation = Windows.ApplicationModel.DataTransfer.DataPackageOperation.Move;
             }
         }
     }
     catch (Exception ex)
     {
         TelemetryExtension.Current?.TrackException(ex);
     }
 }