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}"); }
public void Remove(KeyMacroBinding emp) { this.List.Remove(emp); }
// Collection methods public void Add(KeyMacroBinding emp) { this.List.Add(emp); }