Пример #1
0
 private void _dataTree_InplaceEditEnd(object sender, DataTreeInplaceEditEventArgs e)
 {
     // NOTE: The actual assigning of edited values is done by the data tree, we only have to ensure undo-ableness,
     // and update the designer.
     System.Diagnostics.Debug.Assert(_inplaceUndo != null);
     if (e.Cancel)
     {
         _flexDesigner.Undo_DiscardSavedState(_inplaceUndo);
     }
     else
     {
         _flexDesigner.Undo_PushSavedState(_inplaceUndo);
         // not needed here: _flexDesigner.UpdateFromReport();
         _fieldPicker.Refresh();
     }
     // done.
     _inplaceUndo = null;
 }
Пример #2
0
 private void _dataTree_InplaceEditBegin(object sender, DataTreeInplaceEditEventArgs e)
 {
     System.Diagnostics.Debug.Assert(_inplaceUndo == null);
     _inplaceUndo = _flexDesigner.Undo_CreateSavedState();
 }