Exemplo n.º 1
0
 private void OperatorClient_Load(object sender, EventArgs e)
 {
     if (bd.connection.State == ConnectionState.Open)
     {
         this.Text += " БАЗА ДАННЫХ ПОДКЛЮЧЕНА";
         DataTable table = bd.ShowAll(bd, "Loan");
         dataGridView1.DataSource = table;
         SetTableName(dataGridView1);
     }
     else
     {
         this.Text += " БАЗА ДАННЫХ НЕ ПОДКЛЮЧЕНА"; WorkSpaceClaim.Enabled = false; WorkSpaceTable.Enabled = false;
     }
     listBoxSearchType.SetSelected(0, true);
     listBoxTypeVision.SetSelected(0, true);
     dataGridView1.AllowUserToAddRows = false;
 }