本文整理汇总了C#中ISilDataAccess.GetActionHandler方法的典型用法代码示例。如果您正苦于以下问题:C# ISilDataAccess.GetActionHandler方法的具体用法?C# ISilDataAccess.GetActionHandler怎么用?C# ISilDataAccess.GetActionHandler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISilDataAccess
的用法示例。
在下文中一共展示了ISilDataAccess.GetActionHandler方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddAndInvokeIfRedo
internal int m_chvoDel; // On Do, Redo; #inserted on Undo.
/// <summary>
/// Make an instance and add it to the undo stack. Also, if it's the 'redo' action added after the
/// actual changes (fForRedo is true), issue the propchanged at once to complete the original action.
/// </summary>
/// <param name="sda"></param>
/// <param name="hvo"></param>
/// <param name="tag"></param>
/// <param name="ihvo"></param>
/// <param name="chvoIns"></param>
/// <param name="chvoDel"></param>
/// <param name="fForRedo"></param>
static public ExtraPropChangedAction AddAndInvokeIfRedo(ISilDataAccess sda, int hvo, int tag, int
ihvo, int chvoIns, int chvoDel, bool fForRedo)
{
ExtraPropChangedAction action = new ExtraPropChangedAction(sda, hvo, tag, ihvo, chvoIns, chvoDel, fForRedo);
sda.GetActionHandler().AddAction(action);
if (fForRedo)
action.Redo(false);
return action;
}
示例2: ForceRefreshOnUndoRedo
/// <summary>
/// When in the middle of recording an undoable sequence, force the Undo (or subsequent
/// Redo) to do a Refresh.
/// </summary>
/// <param name="sda"></param>
public static void ForceRefreshOnUndoRedo(ISilDataAccess sda)
{
IActionHandler acth = sda.GetActionHandler();
try
{
if (acth != null)
acth.AddAction(new UndoRefreshAction());
}
finally
{
if (acth != null && Marshal.IsComObject(acth))
Marshal.ReleaseComObject(acth);
}
}