public static void refreshbutton()
        {
            countCombo = Form1.Self.comPort.Items.Count;

            if (countCombo == null || countCombo == 0)
            {
                Utilities.getAvailablePorts();
            }
        }
        //Refresh button Click Event
        public static void refreshButton()
        {
            countCombo = Form1.Self.comPort.Items.Count;


            if (Form1.program_state == false)
            {
                if (countCombo == 0)
                {
                    Utilities.getAvailablePorts();
                }
            }
            else
            {
                MessageBox.Show("Program calishan zaman yenilemek olmaz.",
                                "XEBERDARLIQ", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #3
0
 public Form1()
 {
     Self = this;
     InitializeComponent();
     Utilities.getAvailablePorts();
 }