public SectionViewModel(ISection section, int number, ILocomotiveViewModel ownerLocomotive) { OwnerLocomotive = ownerLocomotive; CaptureNewFaults = false; Section = section; _number = number; FillFaults(); FillPsnLogs(); }
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>(); }