コード例 #1
0
        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());
            }
        }
コード例 #2
0
 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();
 }