예제 #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();
 }
예제 #2
0
 public OpenRemoteDocument(Open open, DavRessource ress)
 {
     this.open = open;
     this.ress = ress;
 }
예제 #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();
        }
예제 #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;
        }