Ejemplo n.º 1
0
 public DumpConditionViewModel(DumpConditionViewModel dumpCondition)
 {
     this.ConnectionPointIndex = dumpCondition.ConnectionPointIndex;
     this.ControlValue         = dumpCondition.ControlValue;
     this.HighLimit            = dumpCondition.HighLimit;
     this.IsUsed          = dumpCondition.IsUsed;
     this.LowLimit        = dumpCondition.LowLimit;
     this.UseControlValue = dumpCondition.UseControlValue;
     this.UseHighLimit    = dumpCondition.UseHighLimit;
     this.UseLowLimit     = dumpCondition.UseLowLimit;
     this.UseValueAbs     = dumpCondition.UseValueAbs;
 }
Ejemplo n.º 2
0
        public EditRpdChannelViewModel(RpdChannelViewModel rpdChannel, IRpdConfigurator rpdConfigurator)
        {
            this.rpdConfigurator = rpdConfigurator;
            this.RpdChannel      = rpdChannel;

            Name          = rpdChannel.Name;
            DumpCondition = new DumpConditionViewModel(rpdChannel.DumpCondition);

            initializeCommands();

            if (DumpCondition.ConnectionPointIndex > 0 && DumpCondition.ConnectionPointIndex <= 48)
            {
                IsPsnPoint = true;
            }
        }