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); } }
public void OnClassTypeChanged(int classType) { ClassTypeChangedEvent?.Invoke(classType); }