예제 #1
0
 void CreateNewNoteMethod(object arg)
 {
     FactoryManager myManager = new FactoryManager();
     myManager.GetNoteManager().CreateNewNote(note.NoteText, repair.RepairID);
     RefreshAction();
     CloseAction();
 }
예제 #2
0
        void PopulateNotes()
        {
            FactoryManager myManager = new FactoryManager();

            List<NoteDTO> result = myManager.GetNoteManager().GetNotesByRepair(this.repairID);

            notes = new ObservableCollection<NoteViewModel>((from note in result
                                                             select new NoteViewModel()
                                                             {
                                                                 NoteID = note.ID,
                                                                 NoteText = note.NoteText,
                                                                 DateCreatedAsUtcTime = note.DateCreatedAsUtcTime,
                                                                 RepairID = note.RepairID
                                                             }).ToList());
        }