Ejemplo n.º 1
0
        public static void refreshbutton()
        {
            countCombo = Form1.Self.comPort.Items.Count;

            if (countCombo == null || countCombo == 0)
            {
                Utilities.getAvailablePorts();
            }
        }
Ejemplo n.º 2
0
        //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);
            }
        }
Ejemplo n.º 3
0
 public Form1()
 {
     Self = this;
     InitializeComponent();
     Utilities.getAvailablePorts();
 }