C# Winform Event Management
- or -
Post a project like this1836
$
- Posted:
- Proposals: 5
- Remote
- #2350091
- Completed
Description
Experience Level: Entry
Estimated project duration: 3 - 4 weeks
Please check my picture, to fully understand what I am talking about.
Everything is detailed with its specific number : (0), (1), (2), (3), (4), (5), (6).
-------------------
Subject topic :
The goal is to create our own components, with their specific characteristics, that could be used whenever we want, by dragging and dropping them in the designer.
Explaination :
We have an User Control, (0). And inside of it, we place our components.
-------------------
Here are our components :
(1). An empty room which is a container.
Inside of this, we can add any others components.
(2). A random lamp, that has such properties :
An integer power (in Watt)
A booelan value : On/Off
(3). A colored lamp.
Through inheritance of the the random lamp => (2).
A lamp that once the switch turns on the light, it shows a colored lamp : it can be the color of your choice, or a random color, generated.
(4). A dimmer lamp => By using a dimmer
Through inheritance of the the random lamp => (2).
The dimmer has several level, let's say 3, from the lowest to the highest.
And the brightness intensity of the lamp depends on the dimmer level that we have selected.
Example :
Dimmer : A - B - C.
We pick "A", it shines a little.
We pick "B" it shines a little more than "A".
We pick "C" and it shines a little more than "B".
(5). A switch
By pushing on it, it else switches ON the lamp, else switches it OFF.
And also, once this switch is pushed, it does turn ON or OFF, all the lamps that are in the same room, (1). Than the switches.
So, it also means, that this switch once pushed, has a action on every lamps that are in the same room than this switch.
Finally, a switch can be place on a lamp, as shown on picture.
(6). A dectector
It is an event object, that triggers an event, on mouse over, on it.
And this event is that,
It looks for the lamps that are switched OFF, and it does switch them ON.
And after a short delay (let's say 3 seconds), it does switch OFF all the lamps.
So that if we mouse over on it again, it does switch them ON again, and then after 3 seconds, switch OFF all the lamps again, etc..
-------------------
These components that we have created can then be drag and drop inside of an empty room, (1). To fill it.
Which means, we can have several empty rooms, containing any components of our choices.
The switches can only turn ON or OFF the lamps that are in the same room than them.
However, we can place a switch in a specific room, and this switch could turn ON or OFF every the lamps that are in another room.
So for instance, we have :
A room A that have 3 lamps and 3 switches.
A room B that have 2 lamps and 2 switches.
A room C that have 2 lamps and 4 switches.
One of the switch in the room A, once pushed can turn ON or OFF, every lamps that are in the room B, and only this room, while the 2 others switches from the room A, only have action on the lamps that are in that room A.
This is what I represented with the switch colored in purple.
The switch is purple, can turn ON or OFF, the lamp that are in this other room.
This could be done by using an Observer, (for example).
Everything is detailed with its specific number : (0), (1), (2), (3), (4), (5), (6).
-------------------
Subject topic :
The goal is to create our own components, with their specific characteristics, that could be used whenever we want, by dragging and dropping them in the designer.
Explaination :
We have an User Control, (0). And inside of it, we place our components.
-------------------
Here are our components :
(1). An empty room which is a container.
Inside of this, we can add any others components.
(2). A random lamp, that has such properties :
An integer power (in Watt)
A booelan value : On/Off
(3). A colored lamp.
Through inheritance of the the random lamp => (2).
A lamp that once the switch turns on the light, it shows a colored lamp : it can be the color of your choice, or a random color, generated.
(4). A dimmer lamp => By using a dimmer
Through inheritance of the the random lamp => (2).
The dimmer has several level, let's say 3, from the lowest to the highest.
And the brightness intensity of the lamp depends on the dimmer level that we have selected.
Example :
Dimmer : A - B - C.
We pick "A", it shines a little.
We pick "B" it shines a little more than "A".
We pick "C" and it shines a little more than "B".
(5). A switch
By pushing on it, it else switches ON the lamp, else switches it OFF.
And also, once this switch is pushed, it does turn ON or OFF, all the lamps that are in the same room, (1). Than the switches.
So, it also means, that this switch once pushed, has a action on every lamps that are in the same room than this switch.
Finally, a switch can be place on a lamp, as shown on picture.
(6). A dectector
It is an event object, that triggers an event, on mouse over, on it.
And this event is that,
It looks for the lamps that are switched OFF, and it does switch them ON.
And after a short delay (let's say 3 seconds), it does switch OFF all the lamps.
So that if we mouse over on it again, it does switch them ON again, and then after 3 seconds, switch OFF all the lamps again, etc..
-------------------
These components that we have created can then be drag and drop inside of an empty room, (1). To fill it.
Which means, we can have several empty rooms, containing any components of our choices.
The switches can only turn ON or OFF the lamps that are in the same room than them.
However, we can place a switch in a specific room, and this switch could turn ON or OFF every the lamps that are in another room.
So for instance, we have :
A room A that have 3 lamps and 3 switches.
A room B that have 2 lamps and 2 switches.
A room C that have 2 lamps and 4 switches.
One of the switch in the room A, once pushed can turn ON or OFF, every lamps that are in the room B, and only this room, while the 2 others switches from the room A, only have action on the lamps that are in that room A.
This is what I represented with the switch colored in purple.
The switch is purple, can turn ON or OFF, the lamp that are in this other room.
This could be done by using an Observer, (for example).
Final M.
100% (11)Projects Completed
8
Freelancers worked with
8
Projects awarded
40%
Last project
22 Sep 2020
France
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies