In this project a series of user controls are created as an extension of the Microsoft Visual Studio IDE. The installation of the controls is done easily and can be used in any Windows Forms desktop project.
The project is open source and is distributed as free software, so anyone can use the controls in their projects and / or modify them.
In current version, two controls have been implemented:
Switch: A control with the appearance of a switch with two states (On and off)
LED: An indicator simulating a led pilot also with two states (On and off)
Controls
Switch
Simulates a microswitch. In current version it has the appearance of a slide-type microswitch with a square lever. It inherits its properties, methods and events from the UserControl class and also implements the following:
Properties
IsON : bool type property. Sets or returns the status of the control, true if the switch is ON or false if the switch is OFF. It appears on the Behavior tab in the Visual Studio Properties window.
Colored: bool type property. Determines if the control displays the colors 'BackgroundON' and 'BackgroundOFF' or just a gray background.
It appears on the Appearance tab in the Visual Studio Properties window.
BackgrounON: Color type property. Sets the background color when the state is 'ON' (IsON = true) and the Colored property is 'true'. It appears on the Appearance tab in the Visual Studio Properties window.
BackgroundOFF: Color type propety. Sets the background color when the state is 'OFF' (IsON = false) and the Colored property is 'true'. It appears on the Appearance tab in the Visual Studio Properties window.
ShowLabels: bool type property. Determines if the control displays the characters '1' and '0' indicating the status of the control. Appears in the Appearance tab in the Properties window of Visual Studio .
LabelColor: Color property. Sets the color of the visible labels '1' and '0' if ShowLabels is 'true'. It appears on the Appearance tab in the Visual Studio Properties window.
Events
IsONChanged: Occurs when the Switch changes its ON / OFF state. The event is invoked when the IsON property changes its value
Led
It simulates an LED diode of the kind used as pilots. The color can be changed when it is on and when it is off and it can be round or rectangular. It inherits its properties, methods and events from the UserControl class and also implements the following:
Properties
IsON: bool type property. LED status on (IsON = true) or off (IsON = False). It appears on the Behavior tab in the Visual Studio Properties window.
Appearance: Appearances type propety that can take the values Round or Square. Sets the 'shape' of the control: round or square. It appears on the Appearance tab in the Visual Studio Properties window.
LedColorON: Color type property. Sets the color of the Led when the status is 'On' (IsON = true). It appears on the Appearance tab in the Visual Studio Properties window.
LedColorOFF: Color type property. Sets the color of the Led when the status is 'Off' (IsON = false). It appears on the Appearance tab in the Visual Studio Properties window.
Wiki 📖
You can find much more about how to use this project in our Wiki