public DHButton(string buttonID, ButtonDownMethodDelegate btnDown, ButtonPressedMethodDelegate btnPressed, ButtonUpMethodDelegate btnUp) { ButtonID = buttonID; ButtonDownMethod = btnDown; ButtonUpMethod = btnUp; ButtonPressedMethod = btnPressed; State = new DHStateMachine <ButtonStates>(null, false); State.ChangeState(ButtonStates.Off); }