I want to complete a series of steps that include a complete test. Some of these steps are automatic (therefore informational), while others require user interaction. During compilation, the testing steps are unknown; they use MEF to load.
I currently have something like
public abstract class TestRunnerBase { public abstract void Run(); }
With a list of such steps:
List<TestRunnerBase> Steps = new List<TestRunnerBase>();
Thus, all the data representing the test serializable, and which is working fine so far. However, I really need the user to load the test from XML, then look at the parameters, displaying the information on the screen and collecting the results.
But trying to figure out how to create a control for data that was not known at compile time ended up being a little stuck on the best approach.
I'm going to do this, I will have a list of user controls (1 step), and the GUI will display the first step, waiting for the completion of this control (did I think here that the raised event can work?), And then display the following if available, and so on until the test is completed.
So can this be done in WPF? Can you create a stack of controls in WPF that can raise the same event to the parent container, or is there a better way to do this?
But if I also use an abstract class, I cannot then derive a control from it also, as a rule, without multiple inheritance in C #.