예제 #1
0
        private void OnAddListener(object obj)
        {
            var window = new AddListenerView();

            window.DataContext = new AddListenerViewModel(window);
            window.ShowDialog();
        }
예제 #2
0
        public NewHttpListenerViewModel(AddListenerView view, AddListenerViewModel viewModel)
        {
            View      = view;
            ViewModel = viewModel;

            _startHttpListener = new DelegateCommand(OnStartHttpListener);
        }
예제 #3
0
        public AddListenerViewModel(AddListenerView view)
        {
            View = view;

            ListenerTypes = new List <string>
            {
                "HTTP",
                "TCP"
            };
        }