Beispiel #1
0
        private void 自动连接ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //
            string cncIP;

            strFileName = Path.GetFileNameWithoutExtension(strFilePath);
            cncIP       = SettingIO.ContentValue(strFilePath, strFileName, "CNC_IP");
            cnc         = new SyntecRemoteCNC(cncIP);
            if (!cnc.isConnected())
            {
                MessageBox.Show("CNC Connection Error!");
            }
            else
            {
                label_mainDevStatus.Text  = "已连接";
                label_mainDevStatus.Image = Properties.Resources.green_128;
                label_workingStatus.Text  = "未起弧";
                label_workingStatus.Image = Properties.Resources.green_128;
                availableSensorList       = SelfCheck();
                if (availableSensorList.Count > 0)
                {
                    MainTimer.Enabled = true;
                }
            }
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (ipAddress1NotNull())
     {
         SettingIO.ContentWrite(strFilePath, strFileName, "CNC_IP", ipAddress1String());
     }
     Close();
 }
Beispiel #3
0
        public ManualConnect()
        {
            InitializeComponent();
            string cncIP;

            strFileName = Path.GetFileNameWithoutExtension(strFilePath);
            cncIP       = SettingIO.ContentValue(strFilePath, strFileName, "CNC_IP");
            setIpAddress1(cncIP);
        }