示例#1
0
		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();
		}
示例#2
0
		public StateBitViewModel(BinaryObjectViewModel binaryObjectViewModel, XStateBit stateBit, bool isActive = false)
		{
			BinaryObjectViewModel = binaryObjectViewModel;
			StateBit = stateBit;
			_isActive = isActive;
		}