/// <summary> /// Funtion to return the User entered Settings. This Function is called when the Accept button was Pressed /// </summary> public SingleConnectionSettings getUserParams() { if (connectionSelection.SelectedItem.ToString() == "TCP") { if (tcpIpPage != null) { currentConnectionSettings.currentConnectionSetting = 1; currentConnectionSettings = tcpIpPage.getUserParams(); } } else if (connectionSelection.SelectedItem.ToString() == "RS232") { if (rs232Page != null) { currentConnectionSettings.currentConnectionSetting = 1; currentConnectionSettings = rs232Page.getUserParams(); } } else { currentConnectionSettings = new SingleConnectionSettings(); } // Return the User Settings return(currentConnectionSettings); }
/// <summary> /// Funtion to return the User entered Settings. This Function is called when the Accept button was Pressed /// </summary> public SingleConnectionSettings getUserParams() { if (currentConnectionSettings.currentConnectionSetting == 1) { if (tcpIpPage != null) { currentConnectionSettings = tcpIpPage.getUserParams(); } } else { if (rs232Page != null) { currentConnectionSettings = rs232Page.getUserParams(); } } // Return the User Settings return(currentConnectionSettings); }