Пример #1
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     Properties.Settings.Default.loginMethod = this.comboBox1.SelectedIndex;
     if (Properties.Settings.Default.loginMethod == 4)
     {
         this.checkBox1.Location = new Point(49, 155);
         this.checkBox2.Location = new Point(165, 155);
         this.label4.Visible     = true;
         this.textBox4.Visible   = true;
     }
     else
     {
         this.checkBox1.Location = new Point(107, 127);
         this.checkBox2.Location = new Point(107, 155);
         this.label4.Visible     = false;
         this.textBox4.Visible   = false;
     }
     if (Properties.Settings.Default.loginMethod == 2)
     {
         this.label3.Text  = "安全密碼";
         this.bfClient     = new BeanfunClient();
         this.gamaotpClass = this.bfClient.GetGamaotpPassCode(this.bfClient.GetSessionkey());
         if (this.bfClient.errmsg != null)
         {
             errexit(this.bfClient.errmsg, 2);
         }
         else
         {
             errexit("通行密碼: " + this.gamaotpClass.motp, 2, "GAMAOTP");
         }
     }
     else if (Properties.Settings.Default.loginMethod == 3)
     {
         this.label3.Text = "安全密碼";
     }
     else if (Properties.Settings.Default.loginMethod == 5)
     {
         this.label3.Text = "PIN碼";
     }
     else
     {
         this.label3.Text = "密碼";
     }
 }
Пример #2
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     Properties.Settings.Default.loginMethod = this.comboBox1.SelectedIndex;
     if (Properties.Settings.Default.loginMethod == 4)
     {
         this.checkBox1.Location = new Point(49, 155);
         this.checkBox2.Location = new Point(165, 155);
         this.label4.Visible = true;
         this.textBox4.Visible = true;
     }
     else
     {
         this.checkBox1.Location = new Point(107, 127);
         this.checkBox2.Location = new Point(107, 155);
         this.label4.Visible = false;
         this.textBox4.Visible = false;
     }
     if (Properties.Settings.Default.loginMethod == 2)
     {
         this.label3.Text = "安全密碼";
         this.bfClient = new BeanfunClient();
         this.gamaotpClass = this.bfClient.GetGamaotpPassCode(this.bfClient.GetSessionkey());
         if (this.bfClient.errmsg != null)
             errexit(this.bfClient.errmsg, 2);
         else
             errexit("通行密碼: " + this.gamaotpClass.motp, 2, "GAMAOTP");
     }         
     else if (Properties.Settings.Default.loginMethod == 3)
     {
         this.label3.Text = "安全密碼";
     }
     else if (Properties.Settings.Default.loginMethod == 5)
     {
         this.label3.Text = "PIN碼";
     }
     else
     {
         this.label3.Text = "密碼";
     }
 }