public void BombInfoUpdate(object sender, EventArgs e) { BombInfo info = sender as BombInfo; if (info != null) { wireModule.SerialIsOdd = info.LastSerialDigitIsOdd; DisplayAnswers(); } }
public void BombInfoUpdate(object sender, EventArgs e) { BombInfo info = sender as BombInfo; if (info != null) { complicatedWiresModule.NumBatteries = info.NumBatteries; complicatedWiresModule.LastSerialDigitIsOdd = info.LastSerialDigitIsOdd; complicatedWiresModule.HasParallelPort = info.HasParallelPort; DisplayAnswers(); } }
public void BombInfoUpdate(object sender, EventArgs e) { BombInfo info = sender as BombInfo; if (info != null) { simonSaysModule.NumStrikes = info.NumStrikes; simonSaysModule.SerialContainsVowel = info.SerialContainsVowel; DisplayAnswers(); UpdateWarnings(); } }
public void BombInfoUpdate(object sender, EventArgs e) { BombInfo info = sender as BombInfo; if (info != null) { buttonModule.NumBatteries = info.NumBatteries; buttonModule.CarIsLit = info.CarIndicatorIsLit; buttonModule.FrkIsLit = info.FrkIndicatorIsLit; DisplayAnswers(); } }
public WiresModule(BombInfo info) { wires = new List <wireColor>(); for (int i = 0; i < MAX_WIRES; ++i) { wires.Add(wireColor.NoWire); } solution = wireSolution.NotEnoughWires; displayOddSerialWarning = false; serialIsOdd = info.LastSerialDigitIsOdd; }
public ButtonModule(BombInfo info) { numBatteries = info.NumBatteries; carIsLit = info.CarIndicatorIsLit; frkIsLit = info.FrkIndicatorIsLit; colorOfButton = buttonColor.NotSet; textOfButton = buttonText.NotSet; theSolution = buttonSolution.MissingInfo; displayBatteryWarning = false; displayCarWarning = false; displayFrkWarning = false; }
public ComplicatedWiresModule(BombInfo info) { numBatteries = info.NumBatteries; lastSerialDigitIsOdd = info.LastSerialDigitIsOdd; hasParallelPort = info.HasParallelPort; wires = new List <Wire> { new Wire(), new Wire(), new Wire(), new Wire(), new Wire(), new Wire() }; warningsToDisplay = new List <DisplayWarning> { DisplayWarning.None, DisplayWarning.None, DisplayWarning.None, DisplayWarning.None, DisplayWarning.None, DisplayWarning.None }; }
private void InitializeBomb() { bombInfo = new BombInfo(); bombTimeLeft = new TimeSpan(); lastStopwatchElapsed = new TimeSpan(); stopWatch = new Stopwatch(); removeStrikeButton.Enabled = false; serialOddEvenComboBox.SelectedIndex = -1; numBatteriesComboBox.SelectedIndex = -1; serialVowelComboBox.SelectedIndex = -1; parallelComboBox.SelectedIndex = -1; timerIsRunning = false; timerMinutes = 5; timerSeconds = 0; timerTextBox.Text = "05:00"; bombTimer.Tick += OnTick; }
private void InitializeModule(BombInfo info) { complicatedWiresModule = new ComplicatedWiresModule(info); }
public ComplicatedWiresForm(BombInfo info) { InitializeComponent(); InitializeModule(info); }
private void InitializeModule(BombInfo info) { simonSaysModule = new SimonSaysModule(info); UpdateWarnings(); }
public SimonSaysForm(BombInfo info) { InitializeComponent(); InitializeModule(info); }
private void InitializeModule(BombInfo info) { buttonModule = new ButtonModule(info); colorComboBox.Items.AddRange(comboColorStrings.ToArray()); textComboBox.Items.AddRange(comboTextStrings.ToArray()); }
public ButtonForm(BombInfo info) { InitializeComponent(); InitializeModule(info); }
private void InitializeModule(BombInfo info) { wireModule = new WiresModule(info); ResetComboBoxes(); }
public WiresForm(BombInfo info) { InitializeComponent(); InitializeModule(info); InitializeInstructions(); }