public PublishDocument(Publish pub)
 {
     this.pub = pub;
 }
 public ShowDownloadState(Publish pub)
 {
     this.pub = pub;
 }
 private void Publish_Click(CommandBarButton cmdBarbutton, ref bool cancel)
 {
     Publish DialogPublish = new Publish(app);
     DialogPublish.ShowDialog();
 }