/// <summary> /// Параметры словарем /// (SpeedPress * 10) /// </summary> /// <returns></returns> public Dictionary <string, string> GetAsParametesDictionary() { Dictionary <string, string> parameters = new Dictionary <string, string>(); parameters.Add(OpcConsts.SpeedPress, ((int)(SpeedPress * 10)).ToString()); parameters.Add(OpcConsts.PosadkaKol, WheelPosition.ToString()); parameters.Add(OpcConsts.Instrument, Instrument.ToString()); parameters.Add(OpcConsts.BlinR, EmphasisTravers.ToString()); parameters.Add(OpcConsts.BlinL, EmphasisPlunger.ToString()); return(parameters); }
public override string ToString() { return(string.Format("[(Pressed:{0}),(Released:{1}),(Down:{2}),(Position:{3}),(Wheel:{4}),(WheelDelta:{5})", _buttonDataToString(ButtonsPressed), _buttonDataToString(ButtonsReleased), _buttonDataToString(ButtonsDown), Position.ToString(), WheelPosition.ToString(), WheelDelta.ToString())); }