Exemple #1
0
 private void buttonClearUnitID_Click(object sender, EventArgs e)
 {
     Pk2.UnitIDWrite("");
     buttonClearUnitID.Enabled = false;
     buttonClearUnitID.Text    = "No Assigned ID";
     unitIDChanged             = true;
 }
Exemple #2
0
 private void buttonSetUnitID_Click(object sender, EventArgs e)
 {
     if (Pk2.UnitIDWrite(textBoxUnitID.Text))
     {
         labelAssignedID.Visible = true;
         buttonSetUnitID.Enabled = false;
     }
 }
Exemple #3
0
 private void buttonClearUnitID_PK3_Click(object sender, EventArgs e)
 {
     Pk2.UnitIDWrite("");
     labelAssignedID.Text          = "No Unit ID Assigned to this PICkit 3.";
     labelAssignedID.Visible       = true;
     buttonClearUnitID_PK3.Enabled = false;
     buttonClearUnitID_PK3.Text    = "No Assigned ID";
     buttonCancel.Text             = "Finished";
     textBoxUnitID.Text            = "";
     textBoxUnitID.Enabled         = false;
     unitIDChanged = true;
 }
Exemple #4
0
        private void buttonSetUnitID_Click(object sender, EventArgs e)
        {
            if (Pk2.UnitIDWrite(textBoxUnitID.Text))
            {
                if (Pk2.isPK3)                 // PICkit 3
                {
                    labelAssignedID.Text  = "Unit ID Assigned to this PICkit 3.";
                    buttonCancel.Text     = "Finished";
                    textBoxUnitID.Enabled = false;
                }

                labelAssignedID.Visible = true;
                buttonSetUnitID.Enabled = false;
                unitIDChanged           = true;
            }
        }