Esempio n. 1
0
        static public void EndPresentation()
        {
            if (formViewer.InvokeRequired)
            {
                formViewer.Invoke(new Action(() => formViewer.Close()));
            }
            else
            {
                formViewer.Close();
            }
            formViewer = null;

            if (Connection.CurrentGroup.settings.Download)
            {
                FormAlert formAlert1 = new FormAlert("Presentation finished", "Would you like to download slides?");
                if (formAlert1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    FormDownloadSlide formProgress = new FormDownloadSlide();
                    formProgress.ShowDialog();
                }
            }
            else
            {
                FormAlert formAlert2 = new FormAlert("Presentation finished", "Thank you for using ShareP!", true);
                formAlert2.ShowDialog();
            }
            if (Connection.FormMenu.InvokeRequired)
            {
                Connection.FormMenu.Invoke(new Action(() => Connection.FormMenu.OnViewerClosed()));
            }
            else
            {
                Connection.FormMenu.OnViewerClosed();
            }
        }
Esempio n. 2
0
        private void button9_Click(object sender, EventArgs e)
        {
            FormDownloadSlide formProgress = new FormDownloadSlide();

            formProgress.ShowDialog();
        }