Exemplo n.º 1
0
        private void StartSearch()
        {
            TaiPanRealtime tpr     = new TaiPanRealtime();
            DataBase       tprdata = (DataBase)tpr.DataBase;

            if (!String.IsNullOrWhiteSpace(this.txt_input_search.Text))
            {
                this.SearchInstrument(tprdata, this.txt_input_search.Text);
            }
        }
Exemplo n.º 2
0
 private void btn_loaddata_Click(object sender, EventArgs e)
 {
     if (this.lstvw_instruments.SelectedItems.Count > 0)
     {
         TaiPanRealtime tpr     = new TaiPanRealtime();
         DataBase       tprdata = (DataBase)tpr.DataBase;
         this.GetData(tprdata, this.dtp_to.Value, this.lstvw_instruments.SelectedItems);
     }
     else
     {
         MessageBox.Show("Please select an instrument!", "Warning");
         return;
     }
 }
Exemplo n.º 3
0
 public TPDatabase()
 {
     if (tprt == null || tpdb == null)
     {
         tprt = new TaiPanRealtime();
         tpdb = (DataBase)tprt.DataBase;
     }
 }