コード例 #1
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     labelX4.ResetText();
     try
     {
         bool ret = m_viewModel.AddVideoSupplier((E_VDA_NET_STORE_DEV_PROTOCOL_TYPE)comboBoxNetStoreType.SelectedValue, textBoxNetStoreName.Text, ipAddressInputNetStoreIp.Value, (uint)integerInputNetStorePort.Value, textBoxNetStoreUsername.Text, textBoxNetStorePassword.Text);
         DialogResult = System.Windows.Forms.DialogResult.OK;
     }
     catch (SDKCallException ex)
     {
         labelX4.Text = "平台设备添加失败 [" + ex.ErrorCode + "] " + ex.Message;
     }
 }