Пример #1
0
        //--------------------------------------------------------------
        // Communications


        private void comms_ComStarted(object sender, ComStartedEventArgs e)
        {
            btnSend.Enabled = false;
            prgBar.Visible  = true;
            prgBar.Value    = 0;
            if (e.Type == CommType.RECEIVING)
            {
                IsEnabled = false;
            }
        }
Пример #2
0
        //--------------------------------------------------------------
        // Communications

        private void comms_ComStarted(object sender, ComStartedEventArgs e)
        {
            if (sendWholeModes)
            {
                comms.CommandsToSend = 21;
            }
            else
            {
                comms.CommandsToSend = 126;
            }
            btnSend.Enabled = false;
            prgBar.Visible  = true;
            prgBar.Value    = 0;
            cbxModeDisable();
            if (e.Type == CommType.RECEIVING)
            {
                IsEnabled = false;
            }
        }