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(); }
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(); }