// ======================================== // constructor // ======================================== /// <summary> /// begin focus /// </summary> public FocusCommand(IEditor target, Point?location, FocusInitializer initializer) { _target = target; _value = FocusKind.Begin; _location = location; _initializer = initializer; }
public static ICommand RequestFocus(this IEditor editor, FocusKind value, Point?location) { var req = new FocusRequest(); req.Value = value; req.Location = location; return(editor.PerformRequest(req)); }
/// <summary> /// rollback focus /// </summary> public FocusCommand(IEditor target) { _target = target; _value = FocusKind.Rollback; }
/// <summary> /// commit focus /// </summary> public FocusCommand(IEditor target, FocusCommiter commiter) { _target = target; _value = FocusKind.Commit; _commiter = commiter; }