예제 #1
0
        internal static void OpenShareDialog(Photo photo, Window ownerWindow)
        {
            var shareWindow = new ShareWindow(photo)
            {
                Owner = ownerWindow
            };

            shareWindow.ShowDialog();
            shareWindow.Dispose();
        }
예제 #2
0
파일: MainViewModel.cs 프로젝트: zkdlu/Zoom
 private void OpenWindowOrStop()
 {
     if (!Mediator.IsShare)
     {
         ShareWindow shareWindow = new ShareWindow();
         shareWindow.Closed += ShareWindow_Closed;
         shareWindow.ShowDialog();
     }
     else
     {
         StopShare();
     }
 }
예제 #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);                
     }
 }