/// <summary>
        /// Initializes a new instance of the <see cref="ExchangeEditor"/>.
        /// </summary>
        public ExchangeEditor()
        {
            Provider = ConfigManager.GetService <IExchangeInfoProvider>();

            Exchanges = new ObservableCollection <Exchange>(Provider.Exchanges);

            InitializeComponent();

            var vm = new ExchangeEditorViewModel(this, Provider);

            vm.DataChanged += VmOnDataChanged;
            DataContext     = vm;

            Provider.ExchangeAdded += ProviderOnExchangeAdded;
        }
        /// <summary>
        /// Создать <see cref="ExchangeEditor"/>.
        /// </summary>
        public ExchangeEditor()
        {
            Provider = ConfigManager.GetService <IExchangeInfoProvider>();

            Exchanges = new ObservableCollection <Exchange>(Provider.Exchanges);

            TimeZones = TimeZoneInfo.GetSystemTimeZones()
                        .Concat(new[] { Exchange.Moex.TimeZoneInfo, Exchange.Test.TimeZoneInfo, Exchange.Ux.TimeZoneInfo })
                        .Distinct()
                        .ToList();

            InitializeComponent();

            var vm = new ExchangeEditorViewModel(this, Provider);

            vm.DataChanged += VmOnDataChanged;
            DataContext     = vm;

            Provider.ExchangeAdded += ProviderOnExchangeAdded;
        }