コード例 #1
0
 private void SetEditMode(EditableStatus value)
 {
     foreach (var listOfControls in _insertedControls)
     {
         foreach (var editableControl in listOfControls.OfType <IEditable>())
         {
             editableControl.EditableStatus = value;
         }
     }
 }
コード例 #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();
     }
 }
コード例 #3
0
 public void Setup(EditableStatus status)
 {
     _textBoxWrapper           = A.Fake <ITextBoxWrapper>();
     _swappableTextboxStrategy = A.Fake <ISwappableTextboxStrategy>();
     _editableTextBox          = new EditableTextBox(_textBoxWrapper, _swappableTextboxStrategy, status);
 }
コード例 #4
0
 public IEditableTextBox Create(ITextBoxWrapper input, ISwappableTextboxStrategy swappableTextboxStrategy,
                                EditableStatus regularMode = EditableStatus.Regular)
 {
     return(new EditableTextBox(input, swappableTextboxStrategy, regularMode));
 }