public Command(String name, CommandScope scope, bool active) { if (name == null) { StackFrame stackFrame = new StackFrame(); MethodBase methodBase = stackFrame.GetMethod(); throw new Exception(string.Format("{0}: invalid arg", methodBase)); } this.name = name; this.active = active; this.hasUndo = true; thisServer = new Server(); if (scope != null) { scopeList.Add(scope); } }
public BaseApplication(String className) { Debug.Assert(className != null); name = className; aboutAppString = null; thisServer = new Server(); }