public HomeVM() { InitFromModel(ComputerModel.CreateModelForGUI()); _codeGenerator = new CodeGenerator(); _consoleWriter = new ConsoleWriter(); _consoleWriter.TextChanged += _consoleWriter_TextChanged; _window = Application.Current.MainWindow as MainWindow; }
public void ClearCircuit(object parameter) { InitFromModel(ComputerModel.CreateModelForGUI()); }
//only for design public CircuitGridVM() : this(ComputerModel.CreateModelForGUI()) { }