예제 #1
0
        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);
        }
예제 #2
0
        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();
        }
예제 #3
0
        public void Load(string nameSpace, string signalName)
        {
            SignalModel model = SignalManager.GetSignalModel(nameSpace, signalName);

            Load(model);
        }