C# Class SpannedDataGridView.CreateDataGridViews

Mostra file Open project: Behzadkhosravifar/MakeClassSchedule Class Usage Examples

Public Methods

Method Description
CreateDataGridViews ( Room>.Dictionary rooms, Form rFrm ) : System
MergeRows ( System.Windows.Forms.DataGridView gridView ) : void
MergeRows ( System.Windows.Forms.DataGridView gridView, Color mergedCells_Color ) : void
OnFileStop ( ) : void
SetNewState ( AlgorithmState state ) : void
SetSchedule ( Schedule schedule, bool showGraphical ) : void

Private Methods

Method Description
ClearDataGridView ( System.Windows.Forms.DataGridView dgv ) : void

This method demonstrates a pattern for making thread-safe calls on a Windows Forms control. If the calling thread is different from the thread that created the DataGridView control, this method creates a ClearCallback and calls itself asynchronously using the Invoke method. If the calling thread is the same as the thread that created the DataGridView control, the Object is set directly.

Create_FristTime ( ) : void
Reset_dataGridView ( System.Windows.Forms.DataGridView &sender ) : void
SetText ( string text ) : void

This method demonstrates a pattern for making thread-safe calls on a Windows Forms control. If the calling thread is different from the thread that created the Label control, this method creates a SetTextCallback and calls itself asynchronously using the Invoke method. If the calling thread is the same as the thread that created the Label control, the Text property is set directly.

Standard_dgv ( Point location, string Name ) : System.Windows.Forms.DataGridView
Standard_lbl ( Point location, string Text, string Name ) : Label
dgv_CellContentClick ( object sender, System.Windows.Forms.DataGridViewCellEventArgs e ) : void
dgv_CellMouseUp ( object sender, System.Windows.Forms.DataGridViewCellMouseEventArgs e ) : void

Method Details

CreateDataGridViews() public method

public CreateDataGridViews ( Room>.Dictionary rooms, Form rFrm ) : System
rooms Room>.Dictionary
rFrm System.Windows.Forms.Form
return System

MergeRows() public static method

public static MergeRows ( System.Windows.Forms.DataGridView gridView ) : void
gridView System.Windows.Forms.DataGridView
return void

MergeRows() public static method

public static MergeRows ( System.Windows.Forms.DataGridView gridView, Color mergedCells_Color ) : void
gridView System.Windows.Forms.DataGridView
mergedCells_Color Color
return void

OnFileStop() public method

public OnFileStop ( ) : void
return void

SetNewState() public method

public SetNewState ( AlgorithmState state ) : void
state AlgorithmState
return void

SetSchedule() public method

public SetSchedule ( Schedule schedule, bool showGraphical ) : void
schedule MakeClassSchedule.Algorithm.Schedule
showGraphical bool
return void