Exemplo n.º 1
0
 private void frmRestor_Load(object sender, EventArgs e)
 {
     dt  = logdata.GetLogs();
     dto = logdata.GetLogsOrderID();
     lbOrderID.DataSource    = dto;
     lbOrderID.ValueMember   = "OrderID";
     lbOrderID.DisplayMember = "OrderID";
     dgvOrders.DataSource    = dt;
     updategrid();
     lbOrderID.SelectedIndex = -1;
     label1.Text             = "";
 }
Exemplo n.º 2
0
 public void UCDataLog_Load(object sender, EventArgs e)
 {
     if (Connection.HasConnection())
     {
         dt  = logdata.GetLogs();
         dto = logdata.GetLogsOrderID();
         lbOrderID.DataSource    = dto;
         lbOrderID.ValueMember   = "OrderID";
         lbOrderID.DisplayMember = "OrderID";
         dgvOrders.DataSource    = dt;
         updategrid();
         lbOrderID.SelectedIndex = -1;
         label1.Text             = "";
     }
 }