Ejemplo n.º 1
0
 public static void AskPCMModel(ref PCMData PCM, bool P01)
 {
     PCMBinBuilder.frmPCMModel frmP = new PCMBinBuilder.frmPCMModel();
     if (P01)
     {
         frmP.radioP59.Visible = false;
     }
     if (frmP.ShowDialog() == DialogResult.OK)
     {
         if (frmP.radioP59.Checked)
         {
             PCM.Type       = "P59";
             PCM.Model      = "P59";
             PCM.BinSize    = (512 * 1024);
             PCM.EepromType = 2001;
         }
         else if (frmP.radioP01.Checked)
         {
             PCM.Type       = "P01";
             PCM.BinSize    = (512 * 1024);
             PCM.Model      = "P01(01-03)";
             PCM.EepromType = 2001;
         }
         else if (frmP.radioP0199.Checked)
         {
             PCM.Type       = "P01";
             PCM.BinSize    = (512 * 1024);
             PCM.Model      = "P01(99-00)";
             PCM.EepromType = 1999;
         }
     }
     frmP.Dispose();
 }