Esempio n. 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}");
        }
Esempio n. 2
0
 public void Remove(MouseMacroBinding emp)
 {
     this.List.Remove(emp);
 }
Esempio n. 3
0
        // Collection methods

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