Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
 public CircuitBindNodeVisitor(Circuit circ)
 {
     circuit = circ;
 }
Exemplo n.º 3
0
 public CircuitBindNodeVisitor(Circuit circ)
 {
     circuit = circ;
 }