예제 #1
0
        public SectionViewModel(ISection section, int number, ILocomotiveViewModel ownerLocomotive)
        {
            OwnerLocomotive  = ownerLocomotive;
            CaptureNewFaults = false;
            Section          = section;
            _number          = number;

            FillFaults();

            FillPsnLogs();
        }
예제 #2
0
        public SectionDesignTime(ILocomotiveViewModel ownerLocomotive)
        {
            _ownerLocomotive = ownerLocomotive;
            Name = "Секция 16";

            Faults = new ObservableCollection<IFaultViewModel>();

            /*
            Faults.Add(new FaultDesignTime());
            Faults.Add(new FaultDesignTime());
            Faults.Add(new FaultDesignTime());
            */
            IsTreeViewExpanded = true;
            PsnLogs = new ObservableCollection<IPsnLogViewModel>();
            PsnPowerOnLogs = new ObservableCollection<IPsnLogViewModel>();
        }