예제 #1
0
        void FillFaults()
        {
            for (int i = 0; i < Section.Faults.Count; i++)
            {
                Faults.Add(new FaultViewModel(Section.Faults[i]));
            }

            _faultsLinker = new ObservableCollectionsConnector <IFaultLog, IFaultViewModel>(Section.Faults, Faults, ConstructNewFault,
                                                                                            log => Faults.FirstOrDefault(e => e.Fault == log));
        }