private void OnAddListener(object obj) { var window = new AddListenerView(); window.DataContext = new AddListenerViewModel(window); window.ShowDialog(); }
public NewHttpListenerViewModel(AddListenerView view, AddListenerViewModel viewModel) { View = view; ViewModel = viewModel; _startHttpListener = new DelegateCommand(OnStartHttpListener); }
public AddListenerViewModel(AddListenerView view) { View = view; ListenerTypes = new List <string> { "HTTP", "TCP" }; }