public CreateTunnelWindow(LauncherModel launcher)
        {
            InitializeComponent();
            DataContext = Model = new CreateTunnelModel(launcher);

            Model.ReloadListening();
        }
        public CreateTunnelForm(LauncherModel main)
        {
            InitializeComponent();
            createTunnelModelBindingSource.DataSource = Model = new CreateTunnelModel(main);

            foreach (var node in Model.Nodes)
            {
                if (node.AcceptNew)
                {
                    comboBox_node.Items.Add(node);
                }
            }

            Model.PropertyChanged += Model_PropertyChanged;
            Model.ReloadListening();
        }
 private void ButtonReload_Click(object sender, RoutedEventArgs e) => Model.ReloadListening();
 private void button_reload_Click(object sender, EventArgs e) => Model.ReloadListening();