protected OnScreenKey(int row, int column, string[] values,
                              CaptionUpdateDelegate valueIndexFunction = null,
                              ExecuteDelegate executeFunction          = null)
        {
            _values             = values;
            _valueIndexFunction = valueIndexFunction ?? CaptionUpdateDelegateDelegateFunction.FirstInArray;
            _executeFunction    = executeFunction ?? ExecuteDelegateFunctions.DefaultExecuteDelegate;
            Content             = Value = values[0];
            GridRow             = row;
            GridColumn          = column;

            Click += KeyPressEventHandler;
        }
示例#2
0
        protected OnScreenKey(int row, int column, string[] values,
                              CaptionUpdateDelegate valueIndexFunction = null,
                              ExecuteDelegate executeFunction          = null)
        {
            _values             = values;
            _valueIndexFunction = valueIndexFunction ?? CaptionUpdateDelegateDelegateFunction.FirstInArray;
            _executeFunction    = executeFunction ?? ExecuteDelegateFunctions.DefaultExecuteDelegate;
            Content             = Value = values[0];
            GridRow             = row;
            GridColumn          = column;

            Click += KeyPressEventHandler;

            //Modifiers.Add(new OnScreenKeyStateModifier(OnScreenKeyModifierType.Special, false, false));
        }
示例#3
0
 internal OnScreenKeyNormal(int row, int column, string[] values, CaptionUpdateDelegate valueIndexFunction)
     : base(row, column, values, valueIndexFunction)
 {
 }