/// <summary>
 /// Generates the Input Color-Code via the class ColorCodeInput and returs the ColorCode
 /// </summary>
 /// <param name="colorCode"></param>
 /// <returns>manually generated ColorCode</returns>
 public void manuallyGeneratedColor()
 {
     display.SimpleGraphics.Clear();
     display.SimpleGraphics.DisplayText("Please enter a code!", font, Gadgeteer.Color.White, 80, 10);
     cci = new ColorCodeInput(10, 50, 8, display, joystick, new EventHandler(unusedMethod));
     cci.inputCode();
 }
示例#2
0
 /// <summary>
 /// creates and initializes a new ColorCodeInput
 /// </summary>
 /// <param name="pos">position (round) of the new input field</param>
 void createColorCodeInput(int pos)
 {
     input = new ColorCodeInput(CODE_X_POS, (pos + 3) * CODE_SIZE_SPACING * 2, CODE_SIZE, display, joystick, inputFinished);
     input.inputCode();
 }