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 Publish(object app)
        {
            d_SetDownloadState = new SetDownloadState(this.SetDownloadStateMethod);
            d_CloseWindows = new CloseWindows(this.CloseWindowsMethod);
            d_ErrorWindow = new ErrorWindow(this.LaunchErrorWindow);
            this.app = (Word._Application)app;

            if (IsPengYouDocument() == true && GetPublishPath() == true)
            {
                PublishDoc();
            }
            else
            {
                error_reason = "This document is not a valid PengYou Document";
                LaunchErrorWindow();
            }

            InitializeComponent();
        }