private void ShowConfigDialog(MainViewModel mainViewModel)
        {
            var win = new ChildWindow();
            win.Title = "Configure";

            var configViewModel = new ConfigViewModel(mainViewModel.AgentConfig);
            configViewModel.Removed += mainViewModel.OnNodeRemoved;
            configViewModel.Updated += mainViewModel.OnNodeUpdated;
            configViewModel.Added += mainViewModel.OnNodeAdded;

            win.Content = new ConfigPanel()
            {
                DataContext = configViewModel
            };

            win.Width = 600;
            win.Height = 300;
            win.Show();
        }
        private void ShowConfigDialog(MainViewModel mainViewModel)
        {
            var win = new Window();
            win.Title = "Configure";
            win.Owner = App.Current.MainWindow;

            var configViewModel = new ConfigViewModel(mainViewModel.AgentConfig);
            configViewModel.Removed += mainViewModel.OnNodeRemoved;
            configViewModel.Updated += mainViewModel.OnNodeUpdated;
            configViewModel.Added += mainViewModel.OnNodeAdded;

            win.Content = new ConfigPanel()
            {
                DataContext = configViewModel
            };

            win.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            win.WindowStyle = WindowStyle.SingleBorderWindow;
            win.ResizeMode = ResizeMode.NoResize;
            win.Width = 600;
            win.Height = 300;
            win.ShowDialog();
        }