BrightIdeasSoftware.ObjectListView.GetControlValue(System.Windows.Forms.Control)

Here are the examples of the csharp api class BrightIdeasSoftware.ObjectListView.GetControlValue(System.Windows.Forms.Control) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

24 Examples 7

1. Example

Project: tesvsnip
Source File: ObjectListView.cs
protected virtual void CellEditor_Validating(object sender, CancelEventArgs e)
        {
            cellEditEventArgs.Cancel = false;
            cellEditEventArgs.NewValue = GetControlValue(cellEditor);
            OnCellEditorValidating(cellEditEventArgs);

            if (cellEditEventArgs.Cancel)
            {
                cellEditEventArgs.Control.Select();
                e.Cancel = true;
            }
            else
                FinishCellEdit();
        }

2. Example

Project: tesvsnip
Source File: ObjectListView.cs
public virtual void CancelCellEdit()
        {
            if (!IsCellEditing)
                return;

            // Let the world know that the user has cancelled the edit operation
            cellEditEventArgs.Cancel = true;
            cellEditEventArgs.NewValue = GetControlValue(cellEditor);
            OnCellEditFinishing(cellEditEventArgs);

            // Now cleanup the editing process
            CleanupCellEdit();
        }

3. Example

Project: tesvsnip
Source File: ObjectListView.cs
public virtual bool PossibleFinishCellEditing()
        {
            if (!IsCellEditing)
                return true;

            cellEditEventArgs.Cancel = false;
            cellEditEventArgs.NewValue = GetControlValue(cellEditor);
            OnCellEditorValidating(cellEditEventArgs);

            if (cellEditEventArgs.Cancel)
                return false;

            FinishCellEdit();

            return true;
        }

4. Example

Project: falloutsnip
Source File: ObjectListView.cs
protected virtual void CellEditor_Validating(object sender, CancelEventArgs e)
        {
            cellEditEventArgs.Cancel = false;
            cellEditEventArgs.NewValue = GetControlValue(cellEditor);
            OnCellEditorValidating(cellEditEventArgs);

            if (cellEditEventArgs.Cancel)
            {
                cellEditEventArgs.Control.Select();
                e.Cancel = true;
            }
            else
                FinishCellEdit();
        }

5. Example

Project: falloutsnip
Source File: ObjectListView.cs
public virtual void CancelCellEdit()
        {
            if (!IsCellEditing)
                return;

            // Let the world know that the user has cancelled the edit operation
            cellEditEventArgs.Cancel = true;
            cellEditEventArgs.NewValue = GetControlValue(cellEditor);
            OnCellEditFinishing(cellEditEventArgs);

            // Now cleanup the editing process
            CleanupCellEdit();
        }

6. Example

Project: falloutsnip
Source File: ObjectListView.cs
public virtual bool PossibleFinishCellEditing()
        {
            if (!IsCellEditing)
                return true;

            cellEditEventArgs.Cancel = false;
            cellEditEventArgs.NewValue = GetControlValue(cellEditor);
            OnCellEditorValidating(cellEditEventArgs);

            if (cellEditEventArgs.Cancel)
                return false;

            FinishCellEdit();

            return true;
        }

7. Example

Project: MapViewer
Source File: ObjectListView.cs
public virtual void CancelCellEdit() {
            if (!this.IsCellEditing)
                return;

            // Let the world know that the user has cancelled the edit operation
            this.CellEditEventArgs.Cancel = true;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.CellEditEventArgs);

            // Now cleanup the editing process
            this.CleanupCellEdit(false, this.CellEditEventArgs.AutoDispose);
        }

8. Example

Project: MapViewer
Source File: ObjectListView.cs
public virtual bool PossibleFinishCellEditing(bool expectingCellEdit) {
            if (!this.IsCellEditing)
                return true;

            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.CellEditEventArgs);

            if (this.CellEditEventArgs.Cancel)
                return false;

            this.FinishCellEdit(expectingCellEdit);

            return true;
        }

9. Example

Project: logwizard
Source File: ObjectListView.cs
protected virtual void CellEditor_Validating(object sender, CancelEventArgs e) {
            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.CellEditEventArgs);

            if (this.CellEditEventArgs.Cancel) {
                this.CellEditEventArgs.Control.Select();
                e.Cancel = true;
            } else
                FinishCellEdit();
        }

10. Example

Project: logwizard
Source File: ObjectListView.cs
public virtual void CancelCellEdit() {
            if (!this.IsCellEditing)
                return;

            // Let the world know that the user has cancelled the edit operation
            this.CellEditEventArgs.Cancel = true;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.CellEditEventArgs);

            // Now cleanup the editing process
            this.CleanupCellEdit(false, this.CellEditEventArgs.AutoDispose);
        }

11. Example

Project: logwizard
Source File: ObjectListView.cs
public virtual bool PossibleFinishCellEditing(bool expectingCellEdit) {
            if (!this.IsCellEditing)
                return true;

            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.CellEditEventArgs);

            if (this.CellEditEventArgs.Cancel)
                return false;

            this.FinishCellEdit(expectingCellEdit);

            return true;
        }

12. Example

Project: Bulk-Crap-Uninstaller
Source File: ObjectListView.cs
protected virtual void CellEditor_Validating(object sender, CancelEventArgs e) {
            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.CellEditEventArgs);

            if (this.CellEditEventArgs.Cancel) {
                this.CellEditEventArgs.Control.Select();
                e.Cancel = true;
            } else
                FinishCellEdit();
        }

13. Example

Project: Bulk-Crap-Uninstaller
Source File: ObjectListView.cs
public virtual void CancelCellEdit() {
            if (!this.IsCellEditing)
                return;

            // Let the world know that the user has cancelled the edit operation
            this.CellEditEventArgs.Cancel = true;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.CellEditEventArgs);

            // Now cleanup the editing process
            this.CleanupCellEdit(false, this.CellEditEventArgs.AutoDispose);
        }

14. Example

Project: Bulk-Crap-Uninstaller
Source File: ObjectListView.cs
public virtual bool PossibleFinishCellEditing(bool expectingCellEdit) {
            if (!this.IsCellEditing)
                return true;

            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.CellEditEventArgs);

            if (this.CellEditEventArgs.Cancel)
                return false;

            this.FinishCellEdit(expectingCellEdit);

            return true;
        }

15. Example

Project: SquareOne
Source File: ObjectListView.cs
protected virtual void CellEditor_Validating(object sender, CancelEventArgs e) {
            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.CellEditEventArgs);

            if (this.CellEditEventArgs.Cancel) {
                this.CellEditEventArgs.Control.Select();
                e.Cancel = true;
            } else
                FinishCellEdit();
        }

16. Example

Project: SquareOne
Source File: ObjectListView.cs
public virtual void CancelCellEdit() {
            if (!this.IsCellEditing)
                return;

            // Let the world know that the user has cancelled the edit operation
            this.CellEditEventArgs.Cancel = true;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.CellEditEventArgs);

            // Now cleanup the editing process
            this.CleanupCellEdit(false, this.CellEditEventArgs.AutoDispose);
        }

17. Example

Project: SquareOne
Source File: ObjectListView.cs
public virtual bool PossibleFinishCellEditing(bool expectingCellEdit) {
            if (!this.IsCellEditing)
                return true;

            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.CellEditEventArgs);

            if (this.CellEditEventArgs.Cancel)
                return false;

            this.FinishCellEdit(expectingCellEdit);

            return true;
        }

18. Example

Project: tesvsnip
Source File: ObjectListView.cs
public virtual void FinishCellEdit()
        {
            if (!IsCellEditing)
                return;

            cellEditEventArgs.Cancel = false;
            cellEditEventArgs.NewValue = GetControlValue(cellEditor);
            OnCellEditFinishing(cellEditEventArgs);

            // If someone doesn't cancel the editing process, write the value back into the model
            if (!cellEditEventArgs.Cancel)
            {
                cellEditEventArgs.Column.PutValue(cellEditEventArgs.RowObject, cellEditEventArgs.NewValue);
                RefreshItem(cellEditEventArgs.ListViewItem);
            }

            CleanupCellEdit();
        }

19. Example

Project: falloutsnip
Source File: ObjectListView.cs
public virtual void FinishCellEdit()
        {
            if (!IsCellEditing)
                return;

            cellEditEventArgs.Cancel = false;
            cellEditEventArgs.NewValue = GetControlValue(cellEditor);
            OnCellEditFinishing(cellEditEventArgs);

            // If someone doesn't cancel the editing process, write the value back into the model
            if (!cellEditEventArgs.Cancel)
            {
                cellEditEventArgs.Column.PutValue(cellEditEventArgs.RowObject, cellEditEventArgs.NewValue);
                RefreshItem(cellEditEventArgs.ListViewItem);
            }

            CleanupCellEdit();
        }

20. Example

Project: MapViewer
Source File: ObjectListView.cs
protected virtual void CellEditor_Validating(object sender, CancelEventArgs e) {
            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditorValidating(this.CellEditEventArgs);

            if (this.CellEditEventArgs.Cancel) {
                this.CellEditEventArgs.Control.Select();
                e.Cancel = true;
            } else
                FinishCellEdit();
        }

21. Example

Project: logwizard
Source File: ObjectListView.cs
public virtual void FinishCellEdit(bool expectingCellEdit) {
            if (!this.IsCellEditing)
                return;

            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.CellEditEventArgs);

            // If someone doesn't cancel the editing process, write the value back into the model
            if (!this.CellEditEventArgs.Cancel) {
                this.CellEditEventArgs.Column.PutValue(this.CellEditEventArgs.RowObject, this.CellEditEventArgs.NewValue);
                this.RefreshItem(this.CellEditEventArgs.ListViewItem);
            }

            this.CleanupCellEdit(expectingCellEdit, this.CellEditEventArgs.AutoDispose);
        }

22. Example

Project: Bulk-Crap-Uninstaller
Source File: ObjectListView.cs
public virtual void FinishCellEdit(bool expectingCellEdit) {
            if (!this.IsCellEditing)
                return;

            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.CellEditEventArgs);

            // If someone doesn't cancel the editing process, write the value back into the model
            if (!this.CellEditEventArgs.Cancel) {
                this.CellEditEventArgs.Column.PutValue(this.CellEditEventArgs.RowObject, this.CellEditEventArgs.NewValue);
                this.RefreshItem(this.CellEditEventArgs.ListViewItem);
            }

            this.CleanupCellEdit(expectingCellEdit, this.CellEditEventArgs.AutoDispose);

            // Tell the world that the cell has been edited
            this.OnCellEditFinished(this.CellEditEventArgs);
        }

23. Example

Project: SquareOne
Source File: ObjectListView.cs
public virtual void FinishCellEdit(bool expectingCellEdit) {
            if (!this.IsCellEditing)
                return;

            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.CellEditEventArgs);

            // If someone doesn't cancel the editing process, write the value back into the model
            if (!this.CellEditEventArgs.Cancel) {
                this.CellEditEventArgs.Column.PutValue(this.CellEditEventArgs.RowObject, this.CellEditEventArgs.NewValue);
                this.RefreshItem(this.CellEditEventArgs.ListViewItem);
            }

            this.CleanupCellEdit(expectingCellEdit, this.CellEditEventArgs.AutoDispose);
        }

24. Example

Project: MapViewer
Source File: ObjectListView.cs
public virtual void FinishCellEdit(bool expectingCellEdit) {
            if (!this.IsCellEditing)
                return;

            this.CellEditEventArgs.Cancel = false;
            this.CellEditEventArgs.NewValue = this.GetControlValue(this.cellEditor);
            this.OnCellEditFinishing(this.CellEditEventArgs);

            // If someone doesn't cancel the editing process, write the value back into the model
            if (!this.CellEditEventArgs.Cancel) {
                this.CellEditEventArgs.Column.PutValue(this.CellEditEventArgs.RowObject, this.CellEditEventArgs.NewValue);
                this.RefreshItem(this.CellEditEventArgs.ListViewItem);
            }

            this.CleanupCellEdit(expectingCellEdit, this.CellEditEventArgs.AutoDispose);

            // Tell the world that the cell has been edited
            this.OnCellEditFinished(this.CellEditEventArgs);
        }