Esempio n. 1
0
        public DesktopShareDlg()
        {
            InitializeComponent();
            this.CenterToScreen();

            rgbmodeComboBox.Items.Add("8-bit colors");
            rgbmodeComboBox.Items.Add("16-bit colors");
            rgbmodeComboBox.Items.Add("24-bit colors");
            rgbmodeComboBox.Items.Add("32-bit colors");
            rgbmodeComboBox.SelectedIndex = 3;

            intervalNumericUpDown.Value = (decimal)update_interval;

            int    i   = 0;
            IntPtr ptr = IntPtr.Zero;

            while (WindowsHelper.GetDesktopWindowHWND(i, ref ptr))
            {
                ShareWindow wnd = new ShareWindow();
                if (WindowsHelper.GetWindow(ptr, ref wnd))
                {
                    windowsComboBox.Items.Add(wnd.szWindowTitle);
                    windowHandles.Add(wnd.hWnd);
                }
                i++;
            }
            if (i > 0)
            {
                windowsComboBox.SelectedIndex = 0;
            }
        }
 bool IsWebGLPublisherOpen()
 {
     if (shareWindow)
     {
         return(true);
     }
     shareWindow = ShareWindow.FindInstance();
     return(false);
 }
 public void SetUp()
 {
     outputFolder = Path.Combine(UnityEngine.Application.temporaryCachePath, "TempBuild/");
     if (!Directory.Exists(outputFolder))
     {
         Directory.CreateDirectory(outputFolder);
     }
     shareWindow = ShareWindow.OpenShareWindow();
     Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
 }
Esempio n. 4
0
        internal static void OpenShareDialog(Photo photo, Window ownerWindow)
        {
            var shareWindow = new ShareWindow(photo)
            {
                Owner = ownerWindow
            };

            shareWindow.ShowDialog();
            shareWindow.Dispose();
        }
Esempio n. 5
0
 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);                
     }
 }