예제 #1
0
        public static string ConvertToString(KeyMacroBinding v)
        {
            var strHK = "";

            switch (v.Hotkey)
            {
            case Keys.None:     //Key.Unknown
                break;

            default:
                strHK = v.Hotkey.ToString();
                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(KeyMacroBinding emp)
 {
     this.List.Remove(emp);
 }
예제 #3
0
        // Collection methods

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