void OnAdd() { var appItemViewModel = new AppItemViewModel(new MulticlientData()); AppItems.Add(appItemViewModel); SelectedAppItem = AppItems.LastOrDefault(); HasChanges = true; }
public void Initialize(MulticlientConfiguration multiclientConfiguration) { if (multiclientConfiguration == null) return; foreach (var multiclientData in multiclientConfiguration.MulticlientDatas) { var appItemViewModel = new AppItemViewModel(multiclientData); AppItems.Add(appItemViewModel); } SelectedAppItem = AppItems.FirstOrDefault(); }