/////// <summary> /////// Gets the control that owns the row entry with the specified index, or null if not found. /////// </summary> /////// <returns></returns> ////internal ItemRowControl_DEPRECATED GetEntryOwner_DEPRECATED(int index) { //// foreach (WindowlessControl c in Controls) { //// ItemRowControl_DEPRECATED row = c as ItemRowControl_DEPRECATED; //// if (row != null && row.Entry.OrderIndex == index) //// return row; //// } //// return null; ////} internal void NotifyActionOccurred(Editroid.UndoRedo.EditroidAction a) { if (a is EditItemProperty) { foreach (WindowlessControl c in Controls) { ItemScreenControl screen = c as ItemScreenControl; if (screen != null && screen.ItemData.Items.Contains(((EditItemProperty)a).Item)) { screen.ReloadImage(); } } } ////if (a is ItemAction) { //// ItemIndex_DEPRECATED ID = new ItemIndex_DEPRECATED(); //// ItemRowControl_DEPRECATED entryOwner = null; //// ID = ((ItemAction)a).ItemIndex; //// entryOwner = GetEntryOwner_DEPRECATED(ID.Row); //// if (entryOwner == null) return; //// if (a is SetItemTilePosition) { //// entryOwner.NotifyScreenEntryMoved(ID); //// } else if (a is SetItemRowPosition) { //// entryOwner.NotifyRowMoved(ID); //// } ////} else if (a is EditItemProperty) { //// ID = ((EditItemProperty)a).ItemID; //// entryOwner = GetEntryOwner_DEPRECATED(ID.Row); //// if (entryOwner == null) return; //// entryOwner.NotifyItemChanged(ID); ////} }
void PerformAction(Editroid.UndoRedo.EditroidAction a) { Program.PerformAction(a); }
/// <summary>If possible, combines the two actions into a single action.</summary> /// <param name="newerAction">The newer action to try to combine with. If the actions combine, this object should be considered invalid.</param> /// <returns>Boolean that indicates whether the action succeeded.</returns> /// <remarks>Note for inheriting classes: combining two actions then /// performing the resulting action must have the same exact result as /// performing the two actions then combining them.</remarks> public virtual bool TryCombine(EditroidAction newerAction) { return(false); }
public void PerformAction(Editroid.UndoRedo.EditroidAction a) { }