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