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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 public HubViewModel()
 {
     notes = new VMList <string>();
 }