Пример #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
            {
                _groupmap.Remove(name);
            }
        }
Пример #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
            {
                _groupmap.Add(group.name, group);
            }
        }
Пример #3
0
 /// <summary>
 /// 移除组
 /// </summary>
 /// <param name="group"></param>
 public void RemoveGroup(MVVMGroup group)
 {
     RemoveGroup(group.name);
 }