V
V
Vampire33662020-03-18 13:31:06
WPF
Vampire3366, 2020-03-18 13:31:06

How to convert a C# console application to WPF?

There is a console application. There is a class (conditionally Show) that interacts with the user (Output, reading information). How to add to WPF solution? So that the Show class interacts with the user not through the console, but through WPF. Please answer as detailed as possible, since I have not worked with graphic applications before

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#, 2020-03-18
@Vampire3366

no way. at least not automatically. in general this is a complete rewrite.
- if there is logic not connected by an interface (data and processing) - it is necessary to isolate it even more clearly
- logic with an interface, if it exists, will have to be recreated. you can take into account the developments, you can score on them. it depends on the point above. the more logic that does not depend on the interface, but solves applied problems - the less rewriting
ps to add optimism:
- how much code are we talking about? if tens, even hundreds of lines. it's not scary. well, or scary only at first glance
- but if there are tens of thousands of lines of code* that have business value - refactoring is needed. and, in the end, everything is the same, in general, it’s not very scary / difficult
* - just laborious;))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question