public void updateLog() { logBox.Clear(); for (int i = 0; i < selectedPinData.GetFrames().ToArray().Length; i++) { PinData.FrameData frameData = selectedPinData.GetFrames()[i]; logBox.Items.Add("Frame" + frameData.getFrame() + " is " + frameData.GetPinmode().ToString()); } }
private void updateFrame(PinData.FrameData frameData) { if (frameData.GetPinmode().Equals(PinData.Pinmode.ON)) { statusLabel.Text = "The current status is on"; } else { statusLabel.Text = "The current status is off"; } updateLog(); }