Exemplo n.º 1
0
        internal static void OpenShareDialog(Photo photo, Window ownerWindow)
        {
            var shareWindow = new ShareWindow(photo)
            {
                Owner = ownerWindow
            };

            shareWindow.ShowDialog();
            shareWindow.Dispose();
        }
Exemplo n.º 2
0
 private void OpenWindowOrStop()
 {
     if (!Mediator.IsShare)
     {
         ShareWindow shareWindow = new ShareWindow();
         shareWindow.Closed += ShareWindow_Closed;
         shareWindow.ShowDialog();
     }
     else
     {
         StopShare();
     }
 }
Exemplo n.º 3
0
 protected override void OnClicked(IOfficeApplication application)
 {
     try
     {
         var window = new ShareWindow();
         window.ShowDialog();
         //if (application.CanAccessWorkshareFunctionality)
         //{
         //    PdfUiHelper.ShowPdfPublishForm(application, false);
         //}
         //else
         //{
         //    Utils.ShowShouldSaveMessage();
         //}
     }
     catch (Exception e)
     {
         Logger.LogError(e);                
     }
 }