C# Класс NanoByte.Common.Undo.MultiPropertyTracker

Tracks values in PropertyGrids in order to be able to generate MultiPropertyChangedCommands after a property was changed.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetCommand ( System.Windows.Forms.GridItem changedItem ) : IUndoCommand

Creates an undo command representing a property change the PropertyGrid has just performed.

MultiPropertyTracker ( System.Windows.Forms.PropertyGrid propertyGrid ) : System

Creates a new multi-property tracker.

Приватные методы

Метод Описание
MoveOutOfNested ( System.Windows.Forms.GridItem item ) : System.Windows.Forms.GridItem

Moves up a hierachy of nested properties to the top element that is still a property.

SelectionChanged ( object sender, System.Windows.Forms.SelectedGridItemChangedEventArgs e ) : void

Reacts to any focus change in the PropertyGrid and creates backups of the current values before the user can change them.

Описание методов

GetCommand() публичный Метод

Creates an undo command representing a property change the PropertyGrid has just performed.
public GetCommand ( System.Windows.Forms.GridItem changedItem ) : IUndoCommand
changedItem System.Windows.Forms.GridItem The property grid item that was changed.
Результат IUndoCommand

MultiPropertyTracker() публичный Метод

Creates a new multi-property tracker.
public MultiPropertyTracker ( System.Windows.Forms.PropertyGrid propertyGrid ) : System
propertyGrid System.Windows.Forms.PropertyGrid The property grid being tracked.
Результат System