/// <summary> /// 鼠标拖拽;本方法可能有多个参数; /// </summary> /// <param name="jsonData"></param> /// <returns></returns> public bool OnMouseDrag(JsonData jsonData) { switch (jsonData.Count) { case 1: throw new Exception("配置文件参数不对!"); case 2: return(FunctionLibrary.OnMouseDrag(jsonData[1].ToString())); case 3: return(FunctionLibrary.OnMouseDrag(jsonData[1].ToString(), jsonData[2].ToString())); case 4: return(FunctionLibrary.OnMouseDrag(jsonData[1].ToString(), jsonData[2].ToString(), jsonData[3].ToJson())); } return(false); }