private void RaiseFilesPickedEvent(string[] fileNames)
        {
            var eventArgs = new FilesPickedEventArgs(DropFilesControl.FilesPickedEvent, fileNames);
            RaiseEvent(eventArgs);

            var cmd = this.FilesPickedCommand;
            if (cmd != null && cmd.CanExecute(fileNames))
                cmd.Execute(fileNames);
        }
Beispiel #2
0
        private void RaiseFilesPickedEvent(string[] fileNames)
        {
            var eventArgs = new FilesPickedEventArgs(DropFilesControl.FilesPickedEvent, fileNames);

            RaiseEvent(eventArgs);

            var cmd = this.FilesPickedCommand;

            if (cmd != null && cmd.CanExecute(fileNames))
            {
                cmd.Execute(fileNames);
            }
        }