예제 #1
0
 private void regButton_Click(object sender, EventArgs e)
 {
     bool devReg = curDev.register();
     if (curDev.Registered == false)
     {
         //Check if Generaton 3. If yes, prompt for pin code
         if (curDev.Actionlist.RegisterMode == 3)
         {
             Form4 ePin = new Form4();
             ePin.ShowDialog();
             string Pin = ePin.PinCode.Text;
             devReg = curDev.sendAuth(Pin);
             ePin.Dispose();
         }
     }
 }
예제 #2
0
        private void regButton_Click(object sender, EventArgs e)

        {

            bool devReg = curDev.Register();

            if (curDev.Registered == false)

            {

                //Check if Generaton 3. If yes, prompt for pin code

                if (curDev.Actionlist.RegisterMode == 3)

                {

                    Form4 ePin = new Form4();

                    ePin.ShowDialog();

                    string Pin = ePin.PinCode.Text;

                    devReg = curDev.SendAuth(Pin);

                    ePin.Dispose();

                }

               //Added by jrodriguez142514

               //Before the below code was added, the application would register a button click but never register a 

               //Generation 4 device.  Now it will open the new Form4 and show a dialog to enter pin.

               //Check if Generaton 4. If yes, prompt for pin code

                else if (curDev.Actionlist.RegisterMode == 4)

                {

                    Form4 ePin = new Form4();

                    ePin.ShowDialog();

                    string Pin = ePin.PinCode.Text;

                    devReg = curDev.SendAuth(Pin);

                    ePin.Dispose();

                    devReg = true;

                }



             }

             else

                 {

                   devReg = true;                

                 }

               //Added by jrodriguez142514

            }