예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (tb_uName.Text.Length > 0 && tb_uPwd.Text.Length > 0)
            {
                loadMail_btn.Enabled = false;

                connectGmail cG = new connectGmail(this);
                cG.LoadEmail(tb_uName.Text, tb_uPwd.Text, dataGridView1, progressBar1);

                loadMail_btn.Enabled = true;
            }
            else {
                MessageBox.Show("請輸入帳號密碼","警告");
            }
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (tb_uName.Text.Length > 0 && tb_uPwd.Text.Length > 0)
            {
                loadMail_btn.Enabled = false;

                connectGmail cG = new connectGmail(this);
                cG.LoadEmail(tb_uName.Text, tb_uPwd.Text, dataGridView1, progressBar1);

                loadMail_btn.Enabled = true;
            }
            else
            {
                MessageBox.Show("請輸入帳號密碼", "警告");
            }
        }