/// <summary> /// Initializes a new instance of the <see cref="ApplicationShutdownViewAction"/> class. /// </summary> /// <param name="model">The model associated with the view.</param> /// <param name="moveToElementName">Name of the element to move the cursor to.</param> /// <param name="caption">The caption.</param> /// <param name="beginGroup">If represented visually, should this action be placed in a new group?</param> /// <param name="category">The category.</param> /// <param name="standardIcon">The standard icon to be used as a brush resource.</param> /// <param name="significance">General significance of the action.</param> public MoveFocusViewAction(IHaveViewInformation model, string moveToElementName, string caption = "", bool beginGroup = false, string category = "", StandardIcons standardIcon = StandardIcons.None, ViewActionSignificance significance = ViewActionSignificance.Normal) : base(caption, beginGroup, category: category, standardIcon: standardIcon, significance: significance) { _model = model; _targetElementName = moveToElementName; BrushResourceKey = "CODE.Framework-Icon-ClosePane"; SetExecutionDelegate(ExecuteCommand); }
/// <summary> /// Initializes a new instance of the <see cref="ApplicationShutdownViewAction"/> class. /// </summary> /// <param name="model">The model associated with the view.</param> /// <param name="moveToElementName">Name of the element to move the cursor to.</param> /// <param name="caption">The caption.</param> /// <param name="beginGroup">If represented visually, should this action be placed in a new group?</param> /// <param name="category">The category.</param> public MoveFocusViewAction(IHaveViewInformation model, string moveToElementName, string caption = "", bool beginGroup = false, string category = "") : base(caption, beginGroup, category: category) { _model = model; _targetElementName = moveToElementName; SetExecutionDelegate(ExecuteCommand); }