void Execute(string name) { if (CRegistery.RemoveAlias(name)) { PostNotification( CCommandNotifications.CAliasesChanged, CCommandNotifications.KeyName, name, CCommandNotifications.KeyManualMode, this.IsManualMode ); } }
void Execute(string prefix = null) { IList <CAliasCommand> aliases = CRegistery.ListAliases(prefix); if (aliases.Count > 0) { foreach (CAliasCommand alias in aliases) { CRegistery.RemoveAlias(alias.Name); } PostNotification( CCommandNotifications.CAliasesChanged, CCommandNotifications.KeyManualMode, this.IsManualMode ); } }