public override void functionwrapper(ControllerImplementation master) { if (isSelected()) { Console.WriteLine(">>> SELECTABLE FUNCTIONWRAPPER WAS CALLED!"); } if (isClicked()) { Console.WriteLine("--- SELECTABLE IS CLICKED"); } }
public override void functionwrapper(ControllerImplementation master) { Console.WriteLine(">>> PRINT_ME FUNCTIONWRAPPER WAS CALLED!"); if (AllowOthersToPrint()) { foreach (KeyValuePair <string, string> kvp in values) { var i = new PrintStuff(); i.printstuff = (kvp.Key + " | " + kvp.Value); i.canBeControlled = true; master.registerController(i); } } }
public override void functionwrapper(ControllerImplementation master) { if (isSelected()) { Console.WriteLine(">>> PRINTSTUFF FUNCTIONWRAPPER WAS CALLED!"); } if (CanBeControlled()) { if (isSelected()) { Console.WriteLine(">>>>>>>>>>>>>>>>>>>>>>>>>>>>> PRINTSTUFF CAN BE CONTROLLED!"); } Console.WriteLine(this.printstuff); } }
public override void functionwrapper(ControllerImplementation master) { if (isSelected()) { Console.WriteLine(">>> CONTROLLABLE FUNCTIONWRAPPER WAS CALLED!"); } if (CanBeSelected()) { if (isSelected()) { Console.WriteLine("--- CONTROLLABLE IS SELECTABLE, REGISTERING COMPONENT!"); } var s = new Selectable(); master.registerController(s); } }