
Fix c# wpf asp.net code. Call 1 instance class method from other class several instan
- or -
Post a project like this2608
$20
- Posted:
- Proposals: 1
- Remote
- #1893908
- Awarded
Description
Experience Level: Intermediate
Estimated project duration: 1-2hours
Job should starts immediately after hiring.
Fix some c# wpf asp.net code issue using remote software control.
I'm newbie in C# and dont know how to deal with calls between diferent classes.. Maybe one just dependency injection works, maybe not (still, dont know how to do that)
Project constains:
- SerialPort class - a class that manages serial port communications
- Openport
- sendcommand
- datareceived methods
- Machine class - a class with several properties and methods. One in particular should use serial port communication
refreshvalues method()
- call commands and receives data
- Service class
creates several instances of Machine class
- ListMachine.Add(....)
- calls Machine.foreach .... Refreshvalues every 1 second
Since the a serial port can be open (and maintain it open) one time in application, serialport class should be one single instance, how can I call it from Machine classes...
Fix some c# wpf asp.net code issue using remote software control.
I'm newbie in C# and dont know how to deal with calls between diferent classes.. Maybe one just dependency injection works, maybe not (still, dont know how to do that)
Project constains:
- SerialPort class - a class that manages serial port communications
- Openport
- sendcommand
- datareceived methods
- Machine class - a class with several properties and methods. One in particular should use serial port communication
refreshvalues method()
- call commands and receives data
- Service class
creates several instances of Machine class
- ListMachine.Add(....)
- calls Machine.foreach .... Refreshvalues every 1 second
Since the a serial port can be open (and maintain it open) one time in application, serialport class should be one single instance, how can I call it from Machine classes...

Fred H.
100% (5)Projects Completed
5
Freelancers worked with
5
Projects awarded
75%
Last project
10 Oct 2018
Brazil
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