상속: System.Windows.Forms.Form
예제 #1
0
파일: PicofDay.cs 프로젝트: jotjot/NPOD
        private void imagesMenuItem_Click(object sender, EventArgs e)
        {
            if (GlobalVariables.LoggingEnabled)
            {
                ExceptionManager.WriteInformation("Images option selected.");
            }
            var processHelper = new ProcessHelper();

            processHelper.BackgroundLoading(TestInternetConnection);
            processHelper.Start();

            if (GlobalVariables.LoggingEnabled)
            {
                ExceptionManager.WriteInformation("Checking internet connectivity");
            }
            //Present the message that an internet connection is required
            if (!_internetAvailable)
            {
                MessageBox.Show(Resources.InternetRequiredMessage, Resources.InternetRequiredTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            var imagesForm = new ImagesForm();

            imagesForm.ShowDialog();
            UpdateControlContent();
        }
예제 #2
0
파일: PicofDay.cs 프로젝트: BillCacy/NPOD
        private void imagesMenuItem_Click(object sender, EventArgs e)
        {
            if (GlobalVariables.LoggingEnabled) ExceptionManager.WriteInformation("Images option selected.");
            var processHelper = new ProcessHelper();
            processHelper.BackgroundLoading(TestInternetConnection);
            processHelper.Start();

            if (GlobalVariables.LoggingEnabled) ExceptionManager.WriteInformation("Checking internet connectivity");
            //Present the message that an internet connection is required
            if (!_internetAvailable)
            {
                MessageBox.Show(Resources.InternetRequiredMessage, Resources.InternetRequiredTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            var imagesForm = new ImagesForm();
            imagesForm.ShowDialog();
            UpdateControlContent();
        }