Beispiel #1
0
		public override void Initialize()
		{
			Item.ItemBlock = new ElementBlock { BlockIndex = -1 };
			Block = (ElementBlock)BlocksManager.Blocks[Index];
			WireBlock = (WireBlock)BlocksManager.Blocks[WireBlock.Index];
			base.Initialize();
			if (!Task.IsFaulted && !Task.IsCompleted)
				Task.Wait();
		}
Beispiel #2
0
 public override void Load(ValuesDictionary valuesDictionary)
 {
     CircuitPath = new Element[0][];
     base.Load(valuesDictionary);
     Utils.Load(Project);
     Path         = new HashSet <Device>();
     Table        = new Dictionary <Point3, Device>(valuesDictionary.GetValue("Count", 0));
     elementblock = BlocksManager.Blocks[ElementBlock.Index] as ElementBlock;
     Task.Run((Action)ThreadFunction);
 }