public WindowManager(MasterModel root, MainWindow mainWindow) { this.root = root; this.mainWindow = mainWindow; this.graphWindow = null; this.codeWindow = null; this.testWindow = null; }
public void ShowCodeWindow() { if (this.WindowExist(this.codeWindow)) { this.codeWindow.Focus(); } else { this.codeWindow = new CodeWindow(); var VMwindow = new VMcode(this.codeWindow, this.root.Contracts); this.codeWindow.DataContext = VMwindow; this.codeWindow.Show(); } }