Esempio n. 1
0
        /// <summary>
        /// Add new item message recieved
        /// </summary>
        /// <param name="obj">Add new item message</param>
        protected virtual void AddNewItem(ItemAddNewMsg obj)
        {
            if (obj != null && obj.ItemType != typeof(T))
            {
                return;
            }

            AddEditItem = Base.Classes.Functions.CreateInstance(typeof(T)) as T;
        }
        protected override void AddNewItem(ItemAddNewMsg obj)
        {
            if (obj != null && obj.ItemType != typeof(Parking))
            {
                return;
            }

            AddEditItem = new Parking();
        }
Esempio n. 3
0
        /// <summary>
        /// New to - do message recieved
        /// </summary>
        /// <param name="obj">Message</param>
        protected override void AddNewItem(ItemAddNewMsg obj)
        {
            if (obj != null)
            {
                if (obj.ItemType != ItemTypeEnum.ToDo)
                {
                    return;
                }
            }

            DetailItem = new ToDo();
            RaisePropertyChanged(nameof(DetailItem));
        }
 protected abstract void AddNewItem(ItemAddNewMsg obj);