Beispiel #1
0
 public void ChangeBHG()
 {
     if (DGV_BHG.InvokeRequired)
     {
         MyDelegate_meter Mdm = new MyDelegate_meter(ChangeBHG);
         this.Invoke(Mdm);
     }
     else
     {
         this.dT_BHGTableAdapter.Fill_BHG(this.myDataSet.DT_BHG, "不合格");
         DGV_BHG.ClearSelection();
     }
 }
Beispiel #2
0
        private void PlatManger_Load(object sender, EventArgs e)
        {
            try
            {
                // TODO: 这行代码将数据加载到表“myDataSet.Dt_success”中。您可以根据需要移动或删除它。
                this.dt_PlateInfoTableAdapter.Fill(this.myDataSet.Dt_PlateInfo);
                ChangeMeter();
                // TODO: 这行代码将数据加载到表“myDataSet.Dt_MeterInfo”中。您可以根据需要移动或删除它。
                //  this.dt_MeterInfoTableAdapter.Fill(this.myDataSet.Dt_MeterInfo);
                //  this.dT_ResultTableAdapter.Fill(this.myDataSet.DT_Result,"完成");
                // this.dT_BHGTableAdapter.Fill_BHG(this.myDataSet.DT_BHG, "不合格");
                // this.dT_SBTableAdapter.Fill_SB(this.myDataSet.DT_SB, "失败");
            }
            catch (Exception)
            {
                MessageBox.Show("数据库连接异常");
            }

            DGV_MeterInfo.AllowUserToAddRows = false;
            DGV_plat.AllowUserToAddRows      = false;

            DGV_MeterInfo.ClearSelection();
            DGV_plat.ClearSelection();
            DGV_HG.ClearSelection();
            DGV_BHG.ClearSelection();
            DGV_SB.ClearSelection();
            fc = new FormControl(this);
            fc.GetInit(this, fc);

            this.formStartX = this.Width;
            this.formStartY = this.Height;

            Change_st(DGV_MeterInfo);
            Change_pl(DGV_plat);

            if (OpenServer())
            {
                SetBtsetext("关闭服务", Color.Black);
                Lisenter();
            }

            Dictionary <string, HeartInfo> h  = CommonFunction.hearts;
            Dictionary <int, PlatInfo>     he = CommonFunction.platInfos;
        }
Beispiel #3
0
 private void DGV_BHG_Leave(object sender, EventArgs e)
 {
     DGV_BHG.ClearSelection();
 }