public void Connect(SerialConnector con) { if (con != null) con.PropertyChanged -= bindingConnection_CurrentItemChanged; this.con = con; //bindingConnection.DataSource = con; con.PropertyChanged += bindingConnection_CurrentItemChanged; bindingConnection_CurrentItemChanged(null, null); }
public void ConnectWith(SerialConnector c) { connector = c; }
public void Connect(SerialConnector con) { this.con = con; bindingConnection.DataSource = con; bindingConnection_CurrentItemChanged(null, null); }