public frmTheButton(Edgework edges)
 {
     InitializeComponent();
     cboButtonText.SelectedIndex  = 0;
     cboButtonColor.SelectedIndex = 0;
     nudBatteries.Value           = edges.getBatteries();
     chkLitCAR.Checked            = edges.findIndicator("CAR", true);
     chkLitFRK.Checked            = edges.findIndicator("FRK", true);
 }
 public frmComplexWires(Edgework edges)
 {
     InitializeComponent();
     currentBomb              = edges;
     clbEdgeworkData.Enabled  = false;
     btnResetEdgework.Enabled = false;
     clbEdgeworkData.SetItemChecked(0, !(edges.isSerialOdd()));
     clbEdgeworkData.SetItemChecked(1, (edges.getBatteries() >= 2));
     clbEdgeworkData.SetItemChecked(2, (edges.portCount("PARALLEL") >= 1));
     startTable();
 }