Exemple #1
0
 // ========================================
 // constructor
 // ========================================
 /// <summary>
 /// begin focus
 /// </summary>
 public FocusCommand(IEditor target, Point?location, FocusInitializer initializer)
 {
     _target      = target;
     _value       = FocusKind.Begin;
     _location    = location;
     _initializer = initializer;
 }
Exemple #2
0
        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));
        }
Exemple #3
0
 /// <summary>
 /// rollback focus
 /// </summary>
 public FocusCommand(IEditor target)
 {
     _target = target;
     _value  = FocusKind.Rollback;
 }
Exemple #4
0
 /// <summary>
 /// commit focus
 /// </summary>
 public FocusCommand(IEditor target, FocusCommiter commiter)
 {
     _target   = target;
     _value    = FocusKind.Commit;
     _commiter = commiter;
 }