/// <summary> /// Close content window. /// </summary> public void Finish() { DataReceivedEvent -= _viewModel.OnDataReceived; ContentReceivedEvent -= _viewModel.OnContentReceived; ContentRefreshEvent -= _viewModel.OnDataRefresh; _viewModel.RaiseDataReceiveFinishedEvent(null); }
/// <summary> /// Open content window. /// </summary> public void Start() { _viewModel = new ContentWindowViewModel() { Title = ViewTitle }; DataReceivedEvent += _viewModel.OnDataReceived; ContentReceivedEvent += _viewModel.OnContentReceived; ContentRefreshEvent += _viewModel.OnDataRefresh; _view = new CountrySideEngineer.ContentWindow.View.ContentWindowView() { DataContext = _viewModel }; _viewModel.RaiseDataReceiveStartEvent(null); }