I would like to know if it is possible to launch a console application from a WPF application.
In my console application I have added a class called Reports. In my WPF application I create a Reports object and call one of its public methods.
The method it calls contains the code below. The issue is that the code doesn't wait for the user to enter any input so it crashes in the ValidateUserInput. I also do not see any console application actually load. I can't see how to call the Main method of the Program class in my console application. As you can probably tell I'm pretty lost.
Console.WriteLine("*** Running Report ***");
Console.WriteLine("User enter something:");
string myStr = Console.ReadLine();
ValidateUserInput(myStr);