private void NewNetlist(object parameter)
        {
            var item = new NetlistWindowViewModel(null, Dispatcher, Windows);

            item.Closing += (s, e) => this.Windows.Remove(item);
            this.Windows.Add(item);
        }
        private void OpenNetlist(object parameter)
        {
            Microsoft.Win32.OpenFileDialog openFileDialog = new Microsoft.Win32.OpenFileDialog();
            openFileDialog.Filter = "Circuit files (*.cir)|*.cir|Netlist files (*.net)|*.net|Netlist library (*.lib)|*.lib|All files (*.*)|*.*";
            if (openFileDialog.ShowDialog() == true)
            {
                var content = File.ReadAllText(openFileDialog.FileName);

                var directoryName = Path.GetDirectoryName(openFileDialog.FileName);
                Directory.SetCurrentDirectory(directoryName);

                var item = new NetlistWindowViewModel(openFileDialog.FileName, Dispatcher, Windows);
                item.Netlist = content;

                item.Closing += (s, e) => this.Windows.Remove(item);
                this.Windows.Add(item);
            }
        }