Digital Twin - GUI
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
GUI.TimeslotDialog Class Reference

Dialog that lets users choose which timeslots are available. More...

Inheritance diagram for GUI.TimeslotDialog:

Public Member Functions

 TimeslotDialog (CheckBox loc_mac, DateTime start, DateTime end)
 The Constructor. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Private Member Functions

void button1_Click (object sender, EventArgs e)
 Eventhandler that is called when the "Close" button is clicked. More...
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 
void locationCheckboxClicked (object sender, EventArgs e)
 Eventhandler that is called when the state of a location CheckBox has changed. More...
 
void machineCheckboxClicked (object sender, EventArgs e)
 Eventhandler that is called when the state of a machine CheckBox has changed. More...
 

Private Attributes

System.Windows.Forms.Button button1
 
List< CheckBox > checkbox
 List of checkboxes that represent the timeslots. More...
 
System.ComponentModel.IContainer components = null
 Required designer variable. More...
 
System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1
 
LocationCB l
 Location for which the timeslots appears. More...
 
System.Windows.Forms.Label label1
 
MachineCB m
 Machine for which the timeslots appears. More...
 
System.Windows.Forms.TableLayoutPanel tableLayoutPanel1
 

Detailed Description

Dialog that lets users choose which timeslots are available.

To make our model easier and more accurate, users can choose which timeslots are available. Maintenance times for machines as well as times when a location is closed can be chosen by a user.

Constructor & Destructor Documentation

GUI.TimeslotDialog.TimeslotDialog ( CheckBox  loc_mac,
DateTime  start,
DateTime  end 
)

The Constructor.

Parameters
loc_macShould be either a MachineCB oder LocationCB.
startStart time for planning horizon.
endEnd time for planning horizon.

Constructs all the Checkbox and the surrounding table. Table columns are the days and rows represent 1 hour each.

Member Function Documentation

void GUI.TimeslotDialog.button1_Click ( object  sender,
EventArgs  e 
)
private

Eventhandler that is called when the "Close" button is clicked.

Parameters
senderDetermines which object called the eventhandler.
eEvent data.

Closes the TimeSlotDialog.

override void GUI.TimeslotDialog.Dispose ( bool  disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.
void GUI.TimeslotDialog.InitializeComponent ( )
private

Required method for Designer support - do not modify the contents of this method with the code editor.

void GUI.TimeslotDialog.locationCheckboxClicked ( object  sender,
EventArgs  e 
)
private

Eventhandler that is called when the state of a location CheckBox has changed.

Parameters
senderDetermines which object called the eventhandler.
eEvent data.

Binds the State of the CheckBox to its representing timeslot.

void GUI.TimeslotDialog.machineCheckboxClicked ( object  sender,
EventArgs  e 
)
private

Eventhandler that is called when the state of a machine CheckBox has changed.

Parameters
senderDetermines which object called the eventhandler.
eEvent data.

Binds the State of the CheckBox to its representing timeslot.

Member Data Documentation

List<CheckBox> GUI.TimeslotDialog.checkbox
private

List of checkboxes that represent the timeslots.

System.ComponentModel.IContainer GUI.TimeslotDialog.components = null
private

Required designer variable.

LocationCB GUI.TimeslotDialog.l
private

Location for which the timeslots appears.

MachineCB GUI.TimeslotDialog.m
private

Machine for which the timeslots appears.


The documentation for this class was generated from the following files: