void InitializeBinaryObjects() { DescriptorsManager.Create(); var gkDatabase = DescriptorsManager.GkDatabases.FirstOrDefault(); BinaryObjects = new List<BinaryObjectViewModel>(); foreach (var descriptors in gkDatabase.Descriptors) { var binObjectViewModel = new BinaryObjectViewModel(descriptors); BinaryObjects.Add(binObjectViewModel); } SelectedBinaryObject = BinaryObjects.FirstOrDefault(); }
public StateBitViewModel(BinaryObjectViewModel binaryObjectViewModel, XStateBit stateBit, bool isActive = false) { BinaryObjectViewModel = binaryObjectViewModel; StateBit = stateBit; _isActive = isActive; }