public void ChangeClassType(int classType)
        {
            if (classType != CurrentClassType)
            {
                CurrentClassType = classType;
                CurrentClassID   = string.Empty;
                switch ((ClassType)CurrentClassType)
                {
                case ClassType.Regular:
                    ClassCollectionChangedEvent?.Invoke(_regular.RegularClassCollection.ToList <ClassModel>());
                    break;

                case ClassType.Block:
                    ClassCollectionChangedEvent?.Invoke(_block.BlockClassCollection.ToList <ClassModel>());
                    break;
                }
                ClassTypeChangedEvent?.Invoke(CurrentClassType);
            }
        }
Пример #2
0
 public void OnClassTypeChanged(int classType)
 {
     ClassTypeChangedEvent?.Invoke(classType);
 }