private void OnVMDestroyed(VMBase vm) { if (VMList == null) { return; } VMList.Remove(vm); }
private void OnNewVMInitCompleted(VMBase vm) { if (VMList == null) { VMList = new List <VMBase>(); } VMList.Add(vm); OnVMInitCompleted?.Invoke(vm); }
public T GetVM <T>() where T : VMBase { T target = (T)VMList.FirstOrDefault(val => val is T); if (target == null) { target = FindObjectOfType <T>(); } return(target); }
public CreateCharacterFormat() { Format = "CreateCharacter"; Description = "Format is designed to discirbe crharacters I create for games and other concepts."; Author = "Albert M. Byrd"; var black = Color.FromRgb(0, 0, 0); var white = Color.FromRgb(255, 255, 255); Colors = new VMList <Color>(); Colors.Add(black); Colors.Add(white); }
public HubViewModel() { notes = new VMList <string>(); }