Example #1
0
        /////////////////////////////////////////////////////////////////////
        // initialization
        /////////////////////////////////////////////////////////////////////
        private void OnLoad(object sender, EventArgs e)
        {
                #if DEBUG
            // current directory
            string CurDir  = Environment.CurrentDirectory;
            string WorkDir = CurDir.Replace("bin\\Debug", "Work");
            if (WorkDir != CurDir && Directory.Exists(WorkDir))
            {
                Environment.CurrentDirectory = WorkDir;
            }
                #endif

            Text = "Test Uzi Secure Smtp Client Ver 2.0 2019/06/20";
            TypeComboBox.Items.Add("Secure (SSL/TLS) OAuth2");
            TypeComboBox.Items.Add("Secure (SSL/TLS) Plain Text");
            TypeComboBox.Items.Add("Unsecure Plain Text");
            TestParamArray = TestParam.LoadTestParam(TestParamFileName);
            if (TestParamArray == null)
            {
                NextButton.Enabled     = false;
                PreviousButton.Enabled = false;
                SetScreen(new TestParam());
            }
            else
            {
                NextButton.Enabled     = true;
                PreviousButton.Enabled = true;
                SetScreen(TestParamArray[0]);
            }
            return;
        }