private static void TestMulticastDelegateWithoutArguments() { var xDebugger = new Debugger("Test", "Delegates"); xDebugger.Send("Start MulticastDelegate test"); mCount = 0; Action xDelegate = IncreaseCounterOnce; xDebugger.Send("Adding second handler now"); xDelegate += IncreaseCounterOnce; xDelegate(); Assert.AreEqual(2, mCount, "After calling multicast delegate once, Count != 2"); }
public static void Init(TextScreenBase textScreen, Keyboard keyboard) { // We must init Console before calling Inits. // This is part of the "minimal" boot to allow output. mDebugger.Send("Creating Console"); if (textScreen != null) { Console = new Console(textScreen); } mDebugger.Send("HW Init"); HAL.Global.Init(textScreen, keyboard); NumLock = false; CapsLock = false; ScrollLock = false; //Network.NetworkStack.Init(); }
// TODO: continue adding exceptions to the list, as HAL and Core would be documented. /// <summary> /// Init console, screen and keyboard. /// </summary> /// <param name="textScreen">A screen device.</param> public static void Init(TextScreenBase textScreen, bool InitScroolWheel = true, bool InitPS2 = true, bool InitNetwork = true, bool IDEInit = true) { // We must init Console before calling Inits. // This is part of the "minimal" boot to allow output. mDebugger.Send("Creating Console"); if (textScreen != null) { Console = new Console(textScreen); } mDebugger.Send("Creating Keyboard"); mDebugger.Send("HW Init"); HAL.Global.Init(textScreen, InitScroolWheel, InitPS2, InitNetwork, IDEInit); Network.NetworkStack.Init(); mDebugger.Send("Network Stack Init"); NumLock = false; CapsLock = false; ScrollLock = false; }