// 优化这里 TODO /// <summary> /// 鼠标左键按下事件; /// </summary> public bool OnMouseLeftDown(JsonData jsonData) { switch (jsonData.Count) { case 1: throw new Exception("配置文件参数不对!"); case 2: return(FunctionLibrary.OnMouseLeftDown(jsonData[1].ToString())); case 3: return(FunctionLibrary.OnMouseLeftDown(jsonData[1].ToString(), jsonData[2].ToString())); case 4: return(FunctionLibrary.OnMouseLeftDown(jsonData[1].ToString(), jsonData[2].ToString(), jsonData[3].ToJson())); } return(false); }