Exemplo n.º 1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (!DesignMode)
            {
                float scalesValue = ComInfo.GetVes().Ves;

                l_ves.Text = scalesValue.ToString(CultureInfo.InvariantCulture);
                int count = GetWheelCount();
                if (count > 0 && !WheelList[count - 1].IsFixed)
                {
                    WheelList[count - 1].ScalesValue = scalesValue;
                }
            }
        }