public MainViewModel() { Knife = new KnifeViewModel(); Instructions = new InstructionsViewModel(); Cube = new CubeViewModel(); Network = new NetworkViewModel(); }
public MainViewModel() { Knife = new KnifeViewModel(); Instructions = new InstructionsViewModel(); Cube = new CubeViewModel((int)Logic.Manager.X_LENGTH, (int)Logic.Manager.Y_LENGTH, (int)Logic.Manager.Z_LENGTH); Network = new NetworkViewModel(); Log = new Logic.WinLogger(); Manager = new Logic.Manager(Log, Visit, Instructions); // TODO: Заменить Manager.Reset(); Instructions.PropertyChanged += (s, args) => { Manager.XMax = (int)Instructions.MaxX; Manager.YMax = (int)Instructions.MaxY; Manager.ZMax = (int)Instructions.MaxZ; Manager.Delay = (int)Instructions.Delay; Manager.Reset(); }; Instructions.Delay = Instructions.Delay; }