private void PasteDataTable(DataTable dt)
        {
            try
            {
                ProposedOrdersDataSet.ProposedOrdersPasteDataTable table = borders as ProposedOrdersDataSet.ProposedOrdersPasteDataTable;
                if (table == null)
                {
                    return;
                }

                foreach (DataRow dataRow in dt.Rows)
                {
                    ProposedOrdersDataSet.ProposedOrdersPasteRow row = table.NewProposedOrdersPasteRow();
                    row.PromptSymbol     = dataRow["PromptSymbol"].ToString();
                    row.SideMnemonic     = dataRow["SideMnemonic"].ToString();
                    row.ProposedValue    = dataRow["ProposedValue"].ToString();
                    row.AccountShortName = dataRow["AccountShortName"].ToString();
                    //row.Broker = dataRow["Broker"].ToString();
                    // row.UserField1 = dataRow["UserField1"].ToString();
                    // row.UserField2 = dataRow["UserField2"].ToString();
                    // row.UserField8 = dataRow["UserField8"].ToString();


                    table.AddProposedOrdersPasteRow(row);
                }
                dispatcherTimer.Start();
            }
            catch (Exception ex)
            {
                throw ex;
                // addInBase.MessageService.LogMessage(new ApplicationMessage(ex, ApplicationMessageType.ErrorNoPopup));
            }
        }
        // public OrderImportControl( ILinedataApp cli)
        public OrderImportControl()
        {
            addInBase = LinedataApp.Instance;

            try
            {
                Licenser.LicenseKey = "DGF13-TFBDU-97Y7J-L82A";

                ProposedOrdersDataSet.ProposedOrdersPasteDataTable table = new ProposedOrdersDataSet.ProposedOrdersPasteDataTable();

                borders = table;

                InitializeComponent();
                collectionView = new DataGridCollectionView(borders.DefaultView);
                //collectionView.ItemProperties["ProposedValue"].SortComparer = new ValueComparer();
                grid.ItemsSource         = collectionView;
                dispatcherTimer.Interval = TimeSpan.FromMilliseconds(100);
                dispatcherTimer.Tick    += dispatcherTimer_Tick;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }