/// <summary>
        ///1. Copies data from marketviewModel to config
        ///2. Call saving config to disk
        ///
        /// Call from
        /// 1. MarketViewModel.SetEmptyVewModelInstrParams - when create empty view model (task)
        /// 2. MarketViewModel.OnClose - when closing MainWindow (i.e close application) (synchronous, GUI thread)
        /// 3. OnSaveInstrumentConfig - from Views : MarketSettingsWindow.Close, from ControlAmountTextblock    (task)
        /// </summary>
        public void SaveInstrumentConfig()
        {
            for (int i = 0; i < ListWorkAmount.Count; i++)
            {
                _instrumentConfig.WorkAmounts[i] = Convert.ToDecimal(ListWorkAmount[i].TextAmountValue);
            }


            CDataBinder.SaveMarketConfig(_instrumentConfig, this);

            _kernelTerminal.SaveInstrumentConfig(ref _instrumentConfig);
        }