コード例 #1
0
        private void scTestButton_Click(object sender, EventArgs e)
        {
            mtd = new mailTestDelegate(mailTest);
            IAsyncResult ar = mtd.BeginInvoke(scAccountBox.Text, Password.Encrypt(scPassBox.Text, scAccountBox.Text), scDomainBox.Text,
                                              new AsyncCallback(accountConnectTestInvokeMethod), null);

            // 接続中の旨を伝える
            scTestResultLabel.Text = Properties.Resources.AccountSettingTestConnecting;
            nextButton.Enabled     = false;
            previousButton.Enabled = false;
            scTestButton.Enabled   = false;
        }
コード例 #2
0
        private void accountConnectTestButton_Click(object sender, EventArgs e)
        {
            // 接続テスト
            mtd = new mailTestDelegate(mailTest);
            IAsyncResult ar = mtd.BeginInvoke(accountNameBox.Text, Password.Encrypt(accountPasswordBox.Text, accountNameBox.Text), accountDomainBox.Text,
                                              new AsyncCallback(accountConnectTestInvokeMethod), null);

            // 接続中の旨を伝える
            accountConnectTestLabel.Text     = Properties.Resources.AccountSettingTestConnecting;
            accountConnectTestButton.Enabled = false;
            okButton.Enabled     = false;
            cancelButton.Enabled = false;
        }