示例#1
0
 public ReminderPanelContext()
 {
     RemoveItemCommand = new DelegateCommand(() =>
     {
         RemoveItemAction?.Invoke();
     });
     ReminderList = new ObservableCollection <ReminderItem>();
 }
示例#2
0
		/// <summary>
		/// Removes this object from the world
		/// </summary>
		public override void Delete()
		{
			if (m_removeItemAction != null)
			{
				m_removeItemAction.Stop();
				m_removeItemAction = null;
			}
			base.Delete ();
		}
示例#3
0
 /// <summary>
 /// Removes this object from the world
 /// </summary>
 public override void Delete()
 {
     if (m_removeItemAction != null)
     {
         m_removeItemAction.Stop();
         m_removeItemAction = null;
     }
     base.Delete();
 }
示例#4
0
 /// <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);
 }
示例#5
0
		/// <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;
		}