Esempio n. 1
0
        /// <summary>
        /// 移除组
        /// </summary>
        /// <param name="name"></param>
        public void RemoveGroup(string name)
        {
            MVVMGroup _group = FindGroup(name);

            if (_group == null)
            {
                throw new Exception("Have not Add Group " + name);
            }
            else
            {
                _group.module = null;
                _groupmap.Remove(name);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 注册一个 MVVM
        /// </summary>
        public void AddGroup(MVVMGroup group)
        {
            MVVMGroup _group = FindGroup(group.name);

            if (_group != null)
            {
                throw new Exception("Have Add Group " + group.name);
            }
            else
            {
                group.module = this;
                //  group.message = _message;
                _groupmap.Add(group.name, group);
            }
        }
Esempio n. 3
0
 /// <summary>
 /// 移除组
 /// </summary>
 /// <param name="group"></param>
 public void RemoveGroup(MVVMGroup group)
 {
     RemoveGroup(group.name);
 }