コード例 #1
0
ファイル: Command.cs プロジェクト: BackupTheBerlios/opendx2
        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);
            }
        }
コード例 #2
0
        public BaseApplication(String className)
        {
            Debug.Assert(className != null);

            name = className;
            aboutAppString = null;
            thisServer = new Server();
        }