public BlotterSelectionControl(string exchangeCode)
        {
            InitializeComponent();

            this._App = (MainWindow)Application.Current.MainWindow;
            this._ExchangeCode = exchangeCode;
            this._ReportDataManager = this._App.ExchangeDataManager.ReportDataManager;
            if (!this._ReportDataManager.ExchangeBlotterDict.ContainsKey(exchangeCode))
            {
                this._BlotterSelectionList = new ObservableCollection<BlotterSelection>();
                ConsoleClient.Instance.GetBlotterList(exchangeCode, GetBlotterListCallback);
            }
            else
            {
                this._BlotterSelectionList = this._ReportDataManager.GetBlotterCodeList(exchangeCode);
            }

            this.BlotterGrid.ItemsSource = this._BlotterSelectionList;
        }
        private void InitializeData()
        {
            this._BuyCellStyle = this.Resources["BuyCellStyle"] as Style;
            this._SellCellStyle = this.Resources["SellCellStyle"] as Style;
            this._BuySummaryGroupStyle = this.Resources["BuySummaryGroupCellStyle"] as Style;
            this._SellSummaryGroupStyle = this.Resources["SellSummaryGroupStyle"] as Style;
            this._GroupHeadStyle = this.Resources["GroupHeaderStyle"] as Style;
            this._SummaryGroupHeaderStyle = this.Resources["SummaryGroupHeaderStyle"] as Style;
            this._NormalHeaderStyle = this.Resources["NormalHeaderStyle"] as Style;

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

            this._CurrentExchangeCode = (string)this._ExchangeComboBox.SelectedItem;

            this._ReportDataManager = this._App.ExchangeDataManager.ReportDataManager;
            this._GroupNetPositionModel = new GroupNetPositionModel();

            this.QueryGroupNetPosition();
        }
        private void InitializeData()
        {
            this.GetStyle();

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

            this._CurrentExchangeCode = (string)this._ExchangeComboBox.SelectedItem;

            this._ReportDataManager = this._App.ExchangeDataManager.ReportDataManager;
            this._GroupNetPositionModel = new GroupNetPositionModel();
            this._OpenInterestSummaryModel = new OpenInterestSummaryModel();
        }