/// <summary> /// Handles clicking the 'Open...' entry in the window's menu. /// </summary> /// <param name="sender">The sender of this event.</param> /// <param name="routedEventArgs">The arguments of this event.</param> protected void OnOpenCircuitFile(object sender, RoutedEventArgs routedEventArgs) { openFileDialog = new OpenFileDialog { Title = @"Open Circuit File", Filter = @"Text Files Only (.txt)|*.txt", FilterIndex = 1, Multiselect = false }; var dialogResult = openFileDialog.ShowDialog(); if (dialogResult == System.Windows.Forms.DialogResult.OK) circuit = CircuitFileParser.Parse(openFileDialog.FileName); ThreadManager.IsThreadsDone += PrintResults; circuit.Start(); //ThreadManager.StartWait(); }
public CircuitBindNodeVisitor(Circuit circ) { circuit = circ; }
public CircuitBindNodeVisitor(Circuit circ) { circuit = circ; }