示例#1
0
        public ComandManager()
        {
            _command = new List<Command>();
            _dataManager = new DataReturnManager();
            _dataReturners = new List<object>();
            Assembly asm = Assembly.GetExecutingAssembly();
            foreach (Type t in asm.GetTypes().Where<Type>(t => t.IsSubclassOf(typeof(Command)) && t != typeof(Commands.MemoryCommand)))
            {
                _command.Add((Command)Activator.CreateInstance(t));
            }

            DataReturnEvent += _dataManager.ReceiveReturnedData;
        }
示例#2
0
        public ComandManager()
        {
            _command       = new List <Command>();
            _dataManager   = new DataReturnManager();
            _dataReturners = new List <object>();
            Assembly asm = Assembly.GetExecutingAssembly();

            foreach (Type t in asm.GetTypes().Where <Type>(t => t.IsSubclassOf(typeof(Command)) && t != typeof(Commands.MemoryCommand)))
            {
                _command.Add((Command)Activator.CreateInstance(t));
            }

            DataReturnEvent += _dataManager.ReceiveReturnedData;
        }