public DestConfig GetDestConfig(DestSelector ucDestOptions) { DestConfig DestConfig = new UploadersLib.DestConfig(); Adapter.SaveMenuConfigToList <OutputEnum>(ucDestOptions.tsddbOutputs, DestConfig.Outputs); Adapter.SaveMenuConfigToList <ClipboardContentEnum>(ucDestOptions.tsddbClipboardContent, DestConfig.TaskClipboardContent); Adapter.SaveMenuConfigToList <LinkFormatEnum>(ucDestOptions.tsddbLinkFormat, DestConfig.LinkFormat); Adapter.SaveMenuConfigToList <ImageDestination>(ucDestOptions.tsddbDestImage, DestConfig.ImageUploaders); Adapter.SaveMenuConfigToList <TextDestination>(ucDestOptions.tsddbDestText, DestConfig.TextUploaders); Adapter.SaveMenuConfigToList <FileDestination>(ucDestOptions.tsddbDestFile, DestConfig.FileUploaders); Adapter.SaveMenuConfigToList <UrlShortenerType>(ucDestOptions.tsddbDestLink, DestConfig.LinkUploaders); return(DestConfig); }
public DestConfig GetDestConfig(DestSelector ucDestOptions) { DestConfig DestConfig = new UploadersLib.DestConfig(); Adapter.SaveMenuConfigToList<OutputEnum>(ucDestOptions.tsddbOutputs, DestConfig.Outputs); Adapter.SaveMenuConfigToList<ClipboardContentEnum>(ucDestOptions.tsddbClipboardContent, DestConfig.TaskClipboardContent); Adapter.SaveMenuConfigToList<LinkFormatEnum>(ucDestOptions.tsddbLinkFormat, DestConfig.LinkFormat); Adapter.SaveMenuConfigToList<ImageDestination>(ucDestOptions.tsddbDestImage, DestConfig.ImageUploaders); Adapter.SaveMenuConfigToList<TextDestination>(ucDestOptions.tsddbDestText, DestConfig.TextUploaders); Adapter.SaveMenuConfigToList<FileDestination>(ucDestOptions.tsddbDestFile, DestConfig.FileUploaders); Adapter.SaveMenuConfigToList<UrlShortenerType>(ucDestOptions.tsddbDestLink, DestConfig.LinkUploaders); return DestConfig; }