private void ShowStrategyFullInfoView(IStrategy strategy) { StrategyFullInfo strategyFullInfo = new StrategyFullInfo(); MainWindow w = (MainWindow)Window.GetWindow(this); w.MainView.StrategyScroll.Children.Add(strategyFullInfo); w.MainView.ShowSaveDeleteButtonsStrategy(); _viewModel.StrategyContext.SetStrategy(strategy); w.MainView.LoadStrategies(); }
private void CreateStrategy_OnClick(object sender, RoutedEventArgs e) { _viewModel.CurrentStrategy = new Strategy(); StrategyFullInfo strategyFullInfo = new StrategyFullInfo(); StrategyScroll.Children.Add(strategyFullInfo); ShowSaveDeleteButtonsStrategy(); IStrategy strategy = new CreateStrategyStrategy(); _viewModel.StrategyContext.SetStrategy(strategy); }