예제 #1
0
 //Очистка списка объектов
 protected override void ClearOuts()
 {
     Outs.Clear();
     OutsId.Clear();
     Outs2.Clear();
     OutsId2.Clear();
     OperatorOut = null;
 }
예제 #2
0
        //Добавление объекта
        protected override ProviderOut AddOut(ProviderSignal sig)
        {
            var  table = sig.Inf.Get("Table");
            bool isErr = sig.Inf.Get("IsErrorObject") == "True";
            var  code  = sig.Inf.Get("ObjectCode");

            switch (table)
            {
            case "MomValues":
                return(Outs.ContainsKey(code)
                        ? Outs[code]
                        : Outs.Add(code, new FictiveOut(this, isErr)));

            case "MomValues2":
                return(Outs2.ContainsKey(code)
                        ? Outs2[code]
                        : Outs2.Add(code, new FictiveSmallOut(this)));

            case "MomOperator":
                return(OperatorOut ?? (OperatorOut = new FictiveOperatorOut(this)));
            }
            return(null);
        }