static void Add(string name, XStateClass stateClass, string description) { var journalDescriptionState = new JournalDescriptionState(name, stateClass, description); JournalDescriptionStates.Add(journalDescriptionState); }
public JournalDescriptionStateViewModel(JournalDescriptionState xEvent) { JournalDescriptionState = xEvent; }
public JournalDescriptionStateViewModel(JournalDescriptionState journalDescriptionState, List<string> distinctDatabaseDescriptions) { JournalDescriptionState = journalDescriptionState; IsEnabled = distinctDatabaseDescriptions.Any(x => x == journalDescriptionState.Name); }