Click here to Skip to main content
15,891,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a console application. Sometimes, the display can be remote, so there's a proxy design pattern is used to create a virtual console class also defined. Next, I have some header configuration for the console, with SetCursor and WriteLine("Type R to read the configuration file."), etc. I'd like to write a DisplayHeader() method and pass in a reference to the console or vConsole, as is appropriate, but I can't use the Console class in this way. For now, all the header information is repeated, and it kind of stinks. (Like code-smell, like I'm doing something wrong but I'm too ignorant or trapped in my mindset that I can't see it.)

Anyone else ever try to make a proxy console for remoting before?

What I have tried:

I've tried dinking copious amounts of various distilled spirits and even a few hallucinogens to boost my imagination, I've tried reading up on the Console class, which can't be inherited, but honestly, I'm too ignorant to search google (though I've tried) in a way that produces meaningful results (that is, results that don't include proxy design pattern, Console Class, and how to send remote commands).
Posted
Comments
Tomas Takac 19-Jan-17 2:19am    
You should update your question and show us your code. It would be much easier then to understand the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900