Esempio n. 1
0
        // 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);
            }
        }
Esempio n. 2
0
        // 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);
            }
        }