public void SpawnResultWindow(string name, Circuit circuit) { ResultWindow res = new ResultWindow(circuit); res.SizeToContent = SizeToContent.WidthAndHeight; res.Title = System.IO.Path.GetFileName(name); App.Current.MainWindow = res; res.Show(); }
public void SpawnNew(Circuit circuit, string title) { ResultWindow result = new ResultWindow(circuit); result.SizeToContent = SizeToContent.WidthAndHeight; result.Title = title; App.Current.MainWindow = result; result.Show(); }