예제 #1
0
        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();
        }
예제 #2
0
        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);
        }