Beispiel #1
0
        public ScannerBox(ScannerDashboard sd)
        {
            InitializeComponent();
            if (dtFeed.Columns.Contains("Time") == false)
            {
                var colTime       = dtFeed.Columns.Add("Time");
                var colSymbol     = dtFeed.Columns.Add("Symbol");
                var colExpiry     = dtFeed.Columns.Add("Expiry");
                var colStrike     = dtFeed.Columns.Add("Strike", typeof(int));
                var colPC         = dtFeed.Columns.Add("PC");
                var colExch       = dtFeed.Columns.Add("Exch");
                var colClosePrice = dtFeed.Columns.Add("ClosePrice", typeof(double));
                var colLTP        = dtFeed.Columns.Add("LTP", typeof(double));
                var colQuantity   = dtFeed.Columns.Add("Quantity", typeof(int));

                // set primary key constain so we can search for specific rows
                dtFeed.PrimaryKey = new[] { colSymbol, colExpiry, colStrike, colPC, colExch };
            }

            dataGridView1.DataSource = dtFeed;
            foreach (DataGridViewColumn column in dataGridView1.Columns)
            {
                column.SortMode = DataGridViewColumnSortMode.Automatic;
            }

            parentSD = sd;
            ScannerBox.openedMainForm = true;
            myDelegate = new AddListItem(AddListItemMethod);

            myThread = new Thread(new ThreadStart(ThreadFunction));
            myThread.Start();
        }
Beispiel #2
0
        public OrderBlotter(ScannerDashboard sd)
        {
            InitializeComponent();
            parentSD = sd;

            Thread th = new Thread(new ThreadStart(refreshGridData));

            flagRefresh = true;
            Console.WriteLine("Threads started :");
            th.Start();
        }
Beispiel #3
0
 public ScannerConfig(ScannerDashboard sd)
 {
     InitializeComponent();
     parentSD = sd;
 }
Beispiel #4
0
 public Subscriber(ScannerDashboard sd)
 {
     parentSD = sd;
 }