예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (!common.restri2)
     {
         MessageBox.Show("B测阶段每次运行程序只支持上传一次");
     }
     else
     {
         upLoad uu = new upLoad();
         uu.sendMail(textBox1.Text, textBox2.Text, progressBar1);//(body,id,progressBAR)
         common.restri2 = false;
     }
 }
예제 #2
0
        //<v3.3at9/13 /add>

        //<B v3.0at9/11 上传功能/>
        private void button2_Click(object sender, EventArgs e)
        {
            if (!common.restri)
            {
                MessageBox.Show("B测阶段每次运行程序只支持上传一次");
            }
            if (textBox20.Text == "")
            {
                label49.Text = "未输入学号"; MessageBox.Show("输入学号以上传");
            }
            if (textBox18.Text == "" || textBox19.Text == "")
            {
                MessageBox.Show("检测到最终数据缺失,请重新计算");
            }
            else
            {
                upLoad uu = new upLoad();
                uu.sendMail(textBox20.Text, score0, score1, progressBar1, label49);
                common.restri = false;
            }
        }