internal ExchangeInstrument ToExchangeInstrument()
        {
            ExchangeInstrument exchangeInstrument = new ExchangeInstrument();
            exchangeInstrument.ExchangeCode = this.ExchangeCode;
            exchangeInstrument.InstrumentId = this.Id;
            exchangeInstrument.InstrumentCode = this.Code;

            return exchangeInstrument;
        }
        private void SetBindingComboBox()
        {
            this._ActionTimePicker.Value = DateTime.Now;
            this.TaskTypeComboBox.ItemsSource = System.Enum.GetNames(typeof(TaskType));
            this.TaskTypeComboBox.SelectedIndex = 0;

            this.ActionTypeComboBox.ItemsSource = System.Enum.GetNames(typeof(ActionType));
            this.ActionTypeComboBox.SelectedIndex = 3;

            this.SettingsTypeComboBox.ItemsSource = System.Enum.GetNames(typeof(SettingTaskType));
            this.SettingsTypeComboBox.SelectedIndex = 0;

            ExchangInstrument allInstrument = new ExchangInstrument();
            allInstrument.InstrumentCode = "All";

            foreach (string exchangeCode in this._App.ExchangeDataManager.ExchangeCodes)
            {
                ExchangeSettingManager settingManager = this._App.ExchangeDataManager.GetExchangeSetting(exchangeCode);
                foreach (InstrumentClient instrument in settingManager.Instruments.Values)
                {
                    this._InstrumentList.Add(instrument.ToExchangeInstrument());
                }
            }

               // this._InstrumentList.Insert(0, allInstrument);

            this._InstrumentComboBox.ItemsSource = this._InstrumentList;
            this._InstrumentComboBox.DisplayMemberPath = "InstrumentCode";

            this.ExchangeComboBox.ItemsSource = this._App.ExchangeDataManager.ExchangeCodes;
            this.ExchangeComboBox.SelectedItem = this._App.ExchangeDataManager.ExchangeCodes[0];
        }