Beispiel #1
0
        public MultimediaDuplicateAction CheckDuplicate(FileInfo file, out Multimedia duplicate)
        {
            int sizeInBytes = 0;

            duplicate = Service.FindDuplicateMultimedia(file, out sizeInBytes);
            if (duplicate != null)
            {
                var frm = new DuplicateItemOptions(duplicate, sizeInBytes);
                frm.Owner = this.FindParentWindow();
                if (frm.ShowDialog().ValueOrFalse())
                {
                    return(frm.SelectedAction);
                }
                else
                {
                    return(MultimediaDuplicateAction.Cancel);
                }
            }
            return(MultimediaDuplicateAction.NoDuplicate);
        }
Beispiel #2
0
 public MultimediaDuplicateAction CheckDuplicate(FileInfo file, out Multimedia duplicate)
 {
     int sizeInBytes = 0;
     duplicate = Service.FindDuplicateMultimedia(file, out sizeInBytes);
     if (duplicate != null) {
         var frm = new DuplicateItemOptions(duplicate, sizeInBytes);
         frm.Owner = this.FindParentWindow();
         if (frm.ShowDialog().ValueOrFalse()) {
             return frm.SelectedAction;
         } else {
             return MultimediaDuplicateAction.Cancel;
         }
     }
     return MultimediaDuplicateAction.NoDuplicate;
 }