public void PopulateCommand(ICommand command, ICommandProvider commandProvider)
 {
     var uploader = (ClipboardUploaderCommand) command;
     uploader.ImageUploader = commandProvider.GetDefaultCommand(CommandFeatures.ImageUploader);
     uploader.UrlShortener = commandProvider.GetDefaultCommand(CommandFeatures.UrlShortener);
     uploader.TextUploader = commandProvider.GetDefaultCommand(CommandFeatures.TextUploader);
     uploader.FileUploader = commandProvider.GetDefaultCommand(CommandFeatures.FileUploader);
 }
 public void PopulateCommand(ICommand command, ICommandProvider commandProvider)
 {
     var uploader = (ImageFileUploader) command;
     uploader.FileUploader = commandProvider.GetDefaultCommand(CommandFeatures.FileUploader);
     uploader.ImageWriter.Codec = new PngBitmapCodec();
 }
 public void PopulateCommand(ICommand command, ICommandProvider commandProvider)
 {
     var uploader = (CropShotUploaderCommand) command;
     uploader.ImageUploader = commandProvider.GetDefaultCommand(CommandFeatures.ImageUploader);
     uploader.Renamer = new Renamer { NameFormat = "screenshot-{sequence}" };
 }