Esempio n. 1
0
 public static void ActionViewAttachments()
 {
     if (Globals.XWord2003AddIn.Wiki != null &&
         ("" + Globals.XWord2003AddIn.CurrentPageFullName).Length > 1 &&
         Globals.XWord2003AddIn.CurrentPagePublished)
     {
         ViewPageAttachmentsForm        viewPageAttachmentsForm = new ViewPageAttachmentsForm(Globals.XWord2003AddIn.CurrentPageFullName);
         ViewPageAttachmentsFormManager viewAttachmentsManager  = new ViewPageAttachmentsFormManager(ref viewPageAttachmentsForm);
         viewAttachmentsManager.EnqueueAllHandlers();
         viewPageAttachmentsForm.ShowDialog();
     }
     else
     {
         UserNotifier.Exclamation(UIMessages.NOT_A_PUBLISHED_PAGE);
     }
 }
Esempio n. 2
0
 public static void ActionViewAttachments()
 {
     if (Globals.XWord2003AddIn.Wiki != null
         && ("" + Globals.XWord2003AddIn.CurrentPageFullName).Length > 1
         && Globals.XWord2003AddIn.CurrentPagePublished)
     {
         ViewPageAttachmentsForm viewPageAttachmentsForm = new ViewPageAttachmentsForm(Globals.XWord2003AddIn.CurrentPageFullName);
         ViewPageAttachmentsFormManager viewAttachmentsManager = new ViewPageAttachmentsFormManager(ref viewPageAttachmentsForm);
         viewAttachmentsManager.EnqueueAllHandlers();
         viewPageAttachmentsForm.ShowDialog();
     }
     else
     {
         UserNotifier.Exclamation(UIMessages.NOT_A_PUBLISHED_PAGE);
     }
 }