示例#1
0
        public static string ConvertToString(MouseMacroBinding v)
        {
            var strHK = "";

            switch (v.Button)
            {
            case 0:
                strHK = "LMB";
                break;

            case 1:
                strHK = "MMB";
                break;

            case 2:
                strHK = "RMB";
                break;

            default:
                strHK = $"Button[{v.Button}]";
                break;
            }
            var strMethod = "No Action";

            switch (v.Action)
            {
            case null:
                break;

            default:
                strMethod = v.Action.Method.Name;
                break;
            }
            return($"[{strHK}]-{strMethod}");
        }
示例#2
0
 public void Remove(MouseMacroBinding emp)
 {
     this.List.Remove(emp);
 }
示例#3
0
        // Collection methods

        public void Add(MouseMacroBinding emp)
        {
            this.List.Add(emp);
        }