public CPU(object parent, string context) { this.Parent = parent; this.Context = context; bindingManager = new BindingManager(this, Context); if (context == "ksp") { RunType = kOSRunType.KSP; archive = new Archive(Vessel); Volumes.Add(archive); } else { RunType = kOSRunType.WINFORMS; } this.RegisterkOSExternalFunction(new object[] { "test2", this, "testFunction", 2 }); }
public CPU(object parent, string context) { this.Parent = parent; this.Context = context; for (int i = 0; i < FUNCTION_BUTTON_COUNT; i++) ButtonStates[i] = new TerminalButton(this, i); bindingManager = new BindingManager(this, Context); if (context == "ksp") { RunType = kOSRunType.KSP; archive = new Archive(Vessel); Volumes.Add(archive); } else { RunType = kOSRunType.WINFORMS; } }