Ejemplo n.º 1
0
 public AttachmentService(
     IFileBlobManager fileBlobManager,
     IRepository<Allegato> repositoryAllegati
 )
 {
     _fileBlobManager = fileBlobManager;
     _repositoryAllegati = repositoryAllegati;
 }
        public XF_FileBlobNewEdit(IFileBlobManager manager)
        {
            InitializeComponent();

            if (manager == null)
                throw new ArgumentNullException("manager");

            this.Manager = manager;

            this.Load += XF_FileBlobNewEdit_Load;
        }
Ejemplo n.º 3
0
        public void Load(IFileBlobManager manager)
        {
            if (manager == null)
                throw new ArgumentNullException("manager");

            this.Manager = manager;
            manager.RefreshFileList();

            BindingSource bsFiles = new BindingSource();
            bsFiles.DataSource = manager.ActiveFiles;
            gridControlFiles.DataSource = bsFiles;
        }
Ejemplo n.º 4
0
        public XF_FileBlobNewEdit(IFileBlobManager manager)
        {
            InitializeComponent();

            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }

            this.Manager = manager;

            this.Load += XF_FileBlobNewEdit_Load;
        }
Ejemplo n.º 5
0
        public void Load(IFileBlobManager manager)
        {
            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }

            this.Manager = manager;
            manager.RefreshFileList();

            BindingSource bsFiles = new BindingSource();

            bsFiles.DataSource          = manager.ActiveFiles;
            gridControlFiles.DataSource = bsFiles;
        }
Ejemplo n.º 6
0
 private static void RemoveFromCloudRepositoryInternal(IFileBlobManager manager, Allegato allegato)
 {
     manager.Remove(BuildFileName(allegato));
 }
Ejemplo n.º 7
0
 public static void ImportAzure(IFileBlobManager manager, string fileSource, string fileDestination)
 {
     var b = manager.Get(fileSource);
     b.Name = fileDestination;
     manager.Set(b);
 }
 public static DialogResult F_Show(IFileBlobManager manager)
 {
     using (XF_FileBlobNewEdit form = new XF_FileBlobNewEdit(manager))
         return form.ShowDialog();
 }
Ejemplo n.º 9
0
 public static DialogResult F_Show(IFileBlobManager manager)
 {
     using (XF_FileBlobNewEdit form = new XF_FileBlobNewEdit(manager))
         return(form.ShowDialog());
 }