internal static void OpenShareDialog(Photo photo, Window ownerWindow) { var shareWindow = new ShareWindow(photo) { Owner = ownerWindow }; shareWindow.ShowDialog(); shareWindow.Dispose(); }
private void OpenWindowOrStop() { if (!Mediator.IsShare) { ShareWindow shareWindow = new ShareWindow(); shareWindow.Closed += ShareWindow_Closed; shareWindow.ShowDialog(); } else { StopShare(); } }
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); } }