Example #1
0
        private void btnListRefresh_Click(object sender, EventArgs e)
        {
            cmbServerList.Items.Clear();
            string[] ServerNameArray;
            opc.EnumServerList(txtNode.Text, out ServerNameArray);

            for (int a = 0; a < ServerNameArray.Count <string>(); a++)
            {
                cmbServerList.Items.Add(ServerNameArray[a]);
            }
            cmbServerList.SelectedIndex = 0;
        }
Example #2
0
        // ノードに対するサーバーリストのリフレッシュ
        private void btnListRefresh_Click(object sender, EventArgs e)
        {
            cmbServerList.Items.Clear();
            string[] ServerNameArray;

            try
            {
                opc.EnumServerList(txtNode.Text, out ServerNameArray);

                for (int a = 0; a < ServerNameArray.Count <string>(); a++)
                {
                    cmbServerList.Items.Add(ServerNameArray[a]);
                }
                cmbServerList.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                // Log Error
                DataHelper.ErrorLog(ex.Message);
            }
        }