public LoadViewModel(LoadView view) { SelectCommand = new DelegateCommand(Select); CloseCommand = new DelegateCommand(Close); DeleteCommand = new DelegateCommand(Delete); View = view; Groups = new ObservableCollection <GroupWithEditor>((DataContext.GetAll()).Select(t => new GroupWithEditor(t))); if (Groups != null && Groups.Count > 0) { SelectedGroup = Groups[0]; } }
public static Group ConVerToGroup(GroupWithEditor gwe) { return(gwe.ThisGroup); }