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); } }
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; } }
public TPDatabase() { if (tprt == null || tpdb == null) { tprt = new TaiPanRealtime(); tpdb = (DataBase)tprt.DataBase; } }