Exemplo n.º 1
0
 public Open_Download(Open open, DavRessource ress)
 {
     this.open = open;
     this.ress = ress;
     d_SetDownloadState = new SetDownloadState(this.SetDownloadStateMethod);
     d_CloseWindows = new CloseWindows(this.CloseWindowsMethod);
     InitializeComponent();
 }
Exemplo n.º 2
0
 public OpenRemoteDocument(Open open, DavRessource ress)
 {
     this.open = open;
     this.ress = ress;
 }
Exemplo n.º 3
0
        private void OpenWordDocument(string ressource)
        {
            object omissing = Missing.Value;
            DavRessource Dav = new DavRessource(ressource, this.context);

            Open_Download Dialog = new Open_Download(this, Dav);
            Dialog.ShowDialog();

            if (GetRemoteFile == false)
            {
                error_reason = Dav.ResultReason;
                LaunchErrorWindow();
            }
            else
            {
                connect.Filename = RemoteFile.Name;
                connect.RealFilename = ressource.Remove(0, ressource.LastIndexOf("/") + 1);
            }
            this.Close();
        }
Exemplo n.º 4
0
        private void FillFileList(string ressource)
        {
            bool success;

            DavRessource Dav = new DavRessource(ressource, this.context);
            success = Dav.GetDirectoryListing(out this.directory_listing);
            this.direction = SortDirection.Ascending;

            this.error_reason = Dav.ResultReason;
            this.getDirectoryListing_success = success;
        }