public BacktestWindow()
        {
            InitializeComponent();

            _viewmodel = new BacktestViewModel();
            DataContext = _viewmodel;

            this.dgFill.AutoGeneratingColumn += dataGrid_AutoGeneratingColumn;
            this.dgIndicator.AutoGeneratingColumn += dataGrid_AutoGeneratingColumn;
            this.dgOrder.AutoGeneratingColumn += dataGrid_AutoGeneratingColumn;
            this.dgPosition.AutoGeneratingColumn += dataGrid_AutoGeneratingColumn;
            this.dgResult.AutoGeneratingColumn += dataGrid_AutoGeneratingColumn;
            this.dgTick.AutoGeneratingColumn += dataGrid_AutoGeneratingColumn;
            this.dgOptimum.AutoGeneratingColumn += dataGrid_AutoGeneratingColumn;

            Closing += _viewmodel.OnWindowClosing;
        }
Esempio n. 2
0
        public BacktestWindow()
        {
            InitializeComponent();

            _viewmodel  = new BacktestViewModel();
            DataContext = _viewmodel;

            this.dgFill.AutoGeneratingColumn      += dataGrid_AutoGeneratingColumn;
            this.dgIndicator.AutoGeneratingColumn += dataGrid_AutoGeneratingColumn;
            this.dgOrder.AutoGeneratingColumn     += dataGrid_AutoGeneratingColumn;
            this.dgPosition.AutoGeneratingColumn  += dataGrid_AutoGeneratingColumn;
            this.dgResult.AutoGeneratingColumn    += dataGrid_AutoGeneratingColumn;
            this.dgTick.AutoGeneratingColumn      += dataGrid_AutoGeneratingColumn;
            this.dgOptimum.AutoGeneratingColumn   += dataGrid_AutoGeneratingColumn;

            Closing += _viewmodel.OnWindowClosing;
        }