Example #1
0
 public override void functionwrapper(ControllerImplementation master)
 {
     if (isSelected())
     {
         Console.WriteLine(">>> SELECTABLE FUNCTIONWRAPPER WAS CALLED!");
     }
     if (isClicked())
     {
         Console.WriteLine("--- SELECTABLE IS CLICKED");
     }
 }
Example #2
0
 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);
         }
     }
 }
Example #3
0
 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);
     }
 }
Example #4
0
 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);
     }
 }