Beispiel #1
0
 private void SetEditMode(EditableStatus value)
 {
     foreach (var listOfControls in _insertedControls)
     {
         foreach (var editableControl in listOfControls.OfType <IEditable>())
         {
             editableControl.EditableStatus = value;
         }
     }
 }
Beispiel #2
0
 public EditableTextBox(ITextBoxWrapper input, ISwappableTextboxStrategy swappableTextboxStrategy, EditableStatus regularMode)
 {
     _textBox    = input;
     TrueControl = _textBox.TrueControl;
     _swappableTextboxStrategy = swappableTextboxStrategy;
     _status = regularMode;
     if (_status == EditableStatus.Regular)
     {
         EnterRegularMode();
     }
     else
     {
         EnterEditMode();
     }
 }
Beispiel #3
0
 public void Setup(EditableStatus status)
 {
     _textBoxWrapper           = A.Fake <ITextBoxWrapper>();
     _swappableTextboxStrategy = A.Fake <ISwappableTextboxStrategy>();
     _editableTextBox          = new EditableTextBox(_textBoxWrapper, _swappableTextboxStrategy, status);
 }
Beispiel #4
0
 public IEditableTextBox Create(ITextBoxWrapper input, ISwappableTextboxStrategy swappableTextboxStrategy,
                                EditableStatus regularMode = EditableStatus.Regular)
 {
     return(new EditableTextBox(input, swappableTextboxStrategy, regularMode));
 }