// This changes mode by class name and optionally with arguments public void ChangeMode(string classname, params object[] args) { EditModeInfo emi = GetEditModeInfo(classname); if (emi != null) { emi.SwitchToMode(args); } }
// This changes mode by class name and optionally with arguments public void ChangeMode(string classname, params object[] args) { EditModeInfo emi = GetEditModeInfo(classname); if (emi != null) { emi.SwitchToMode(args); } else { Logger.WriteLogLine("attempted to switch mode to unknown plugin: " + classname); } }