private void button16_Click(object sender, EventArgs e) { //update SSN1's capabilities List <String> capabilities = new List <string>(); List <double> ranges = new List <double>(); List <int> intensities = new List <int>(); List <double> probabilities = new List <double>(); capabilities.Add("STRK"); ranges.Add(1000); intensities.Add(8); probabilities.Add(100); capabilities.Add("C2"); ranges.Add(1000); intensities.Add(1); probabilities.Add(100); capabilities.Add("BDA"); ranges.Add(1000); intensities.Add(1); probabilities.Add(100); try { _connection.UpdateObjectCapabilities("SSN-1", capabilities, ranges, intensities, probabilities); } catch (Exception ex) { UpdateTextBox(String.Format("Error updating SSN-1's capabilities: {0}", ex.Message)); } }