private bool LoadSignalModel(dbSignal dbsignal) { bool loaded = false; if (dbsignal != null) { var dao = new SignalDAO(); dbsignal = dao.getSignal(dbsignal.signalId); _currentSignalModel = SignalManager.GetSignalModel(dbsignal.xmlns, dbsignal.signalName); LoadSignalModel(_currentSignalModel); loaded = true; } return(loaded); }
private void _treeForm_SignalSelect(object sender, XmlDocument tsfDocument) { var element = sender as XmlElement; if (element != null) { edtSelectedValue.Text = element.Name; edtSelectedValue.Tag = element; string xmlns = element.GetAttribute("xmlns"); SignalModel model = SignalManager.GetSignalModel(xmlns, element.Name); if (xmlns.Contains("STDBSC")) { OnSignalSelected(element.Name, element.OwnerDocument); } else { OnSignalSelected(model, element.OwnerDocument); } } CloseTree(); }
public void Load(string nameSpace, string signalName) { SignalModel model = SignalManager.GetSignalModel(nameSpace, signalName); Load(model); }