C# Class ScreenToGif.Controls.NoDoubleClickTreeView

We use this TreeView instead of delivered one, because the last has a bug with double click event.
Inheritance: System.Windows.Forms.TreeView
Show file Open project: dbremner/ScreenToGif

Public Methods

Method Description
Add ( int frameCount ) : void

Adds more frames on the TreeView control

CheckAll ( ) : void

Check all this.Nodes[0].nodes from this control.

IsAllChecked ( ) : bool

Returns true if all frames are checked.

IsFrameSelected ( IList &listIndexSelectedFrames, int actualFrame ) : bool

Check if there is at least one frame, and return list of indexes for selected frames as parameter.

IsSomeChecked ( int amount ) : bool

Checks if the a given amount of frames are checked.

Remove ( int frameCount ) : void

Deletes frames on the TreeView control

SelectedFrames ( ) : IList

Looks for all selected frames.

UncheckAll ( ) : void

Uncheck all this.Nodes[0].nodes from this control.

UpdateListFrames ( int frameCount, string parentNodeLabel ) : void

Update the list of frames on the TreeView control

Protected Methods

Method Description
ScaleControl ( SizeF factor, BoundsSpecified specified ) : void
WndProc ( Message &m ) : void

Disable double click event on the TreeView control

Private Methods

Method Description
NoDoubleClickTreeView_KeyDown ( object sender, KeyEventArgs e ) : void
NoDoubleClickTreeView_KeyUp ( object sender, KeyEventArgs e ) : void

Method Details

Add() public method

Adds more frames on the TreeView control
public Add ( int frameCount ) : void
frameCount int The ammount of frames to add, should not be 0
return void

CheckAll() public method

Check all this.Nodes[0].nodes from this control.
public CheckAll ( ) : void
return void

IsAllChecked() public method

Returns true if all frames are checked.
public IsAllChecked ( ) : bool
return bool

IsFrameSelected() public method

Check if there is at least one frame, and return list of indexes for selected frames as parameter.
public IsFrameSelected ( IList &listIndexSelectedFrames, int actualFrame ) : bool
listIndexSelectedFrames IList /// List of indexes that reference selected frames
actualFrame int The actual frame
return bool

IsSomeChecked() public method

Checks if the a given amount of frames are checked.
public IsSomeChecked ( int amount ) : bool
amount int The minimum amount of frames checked.
return bool

Remove() public method

Deletes frames on the TreeView control
public Remove ( int frameCount ) : void
frameCount int Total number of frames, should not be 0
return void

ScaleControl() protected method

protected ScaleControl ( SizeF factor, BoundsSpecified specified ) : void
factor System.Drawing.SizeF
specified BoundsSpecified
return void

SelectedFrames() public method

Looks for all selected frames.
public SelectedFrames ( ) : IList
return IList

UncheckAll() public method

Uncheck all this.Nodes[0].nodes from this control.
public UncheckAll ( ) : void
return void

UpdateListFrames() public method

Update the list of frames on the TreeView control
public UpdateListFrames ( int frameCount, string parentNodeLabel ) : void
frameCount int Total number of frames, should not be 0
parentNodeLabel string Label that will be displayed on the parent node
return void

WndProc() protected method

Disable double click event on the TreeView control
protected WndProc ( Message &m ) : void
m System.Windows.Forms.Message A Windows Message as reference
return void