public ReminderPanelContext() { RemoveItemCommand = new DelegateCommand(() => { RemoveItemAction?.Invoke(); }); ReminderList = new ObservableCollection <ReminderItem>(); }
/// <summary> /// Removes this object from the world /// </summary> public override void Delete() { if (m_removeItemAction != null) { m_removeItemAction.Stop(); m_removeItemAction = null; } base.Delete (); }
/// <summary> /// Removes this object from the world /// </summary> public override void Delete() { if (m_removeItemAction != null) { m_removeItemAction.Stop(); m_removeItemAction = null; } base.Delete(); }
/// <summary> /// Adds this object to the world /// </summary> /// <returns>true if successfull</returns> public override bool AddToWorld() { if (!base.AddToWorld()) { return(false); } if (m_removeItemAction == null) { m_removeItemAction = new RemoveItemAction(this); } m_removeItemAction.Start((int)m_removeDelay); return(true); }
/// <summary> /// Adds this object to the world /// </summary> /// <returns>true if successfull</returns> public override bool AddToWorld() { if(!base.AddToWorld()) return false; if (m_removeItemAction == null) m_removeItemAction = new RemoveItemAction(this); m_removeItemAction.Start((int)m_removeDelay); return true; }