Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            c++;
            string mess = "jhkjhkjh kjhkjh kjh khkjhkjhkhkh khkh kh " + c.ToString();

            EspRpcApi.writeLineToLog(mess);
        }
Beispiel #2
0
 private bool ping()
 {
     System.Net.IPAddress address = null;
     if (!System.Net.IPAddress.TryParse(Properties.Settings.Default.EspIp, out address))
     {
         showError(Properties.Resources.Msg_WrongIpAddress);
         return(false);
     }
     if (!EspRpcApi.Ping(address))
     {
         showError(string.Format(Properties.Resources.Msg_NoPing, Properties.Settings.Default.EspIp));
         return(false);
     }
     return(true);
 }
Beispiel #3
0
        private void refreshDir()
        {
            Int32 port;

            if (!Int32.TryParse(Properties.Settings.Default.EspPort, out port))
            {
                showError(Properties.Resources.MsgWrongPort);
                return;
            }
            api = new EspRpcApi(new EspModule(Properties.Settings.Default.EspIp, port));
            if (ping())
            {
                fillProjectDataGrid();
                fillEspDataGrid();
            }
        }