public MainWindow() { InitializeComponent(); _dataSaverClass = new DataSaver(this); _dataSaverClass.LoadQuestionFiles(); _testClass = new Test(_dataSaverClass); wpfMain_NumberOfQuestionFiles.Text = _dataSaverClass.QuestionFiles.Count.ToString(); DataContext = _dataSaverClass; }
public TestWindow(DataSaver _dataSaver) { InitializeComponent(); DataSaverClass = _dataSaver; PrepareWindowForNewQuestion(); }
public Test(DataSaver _dataSaver) { DataSaverClass = _dataSaver; }