private void PlatManger_MouseDown(object sender, MouseEventArgs e) { DGV_MeterInfo.ClearSelection(); DGV_plat.ClearSelection(); if (der != null) { der.Close(); } // Showmsg("pp"); }
/// <summary> /// 改变待测表的界面datagridview /// </summary> public void ChangePlat() { if (DGV_plat.InvokeRequired) { MyDelegate_meter Mdm = new MyDelegate_meter(ChangePlat); this.Invoke(Mdm); } else { // TODO: 这行代码将数据加载到表“myDataSet.Dt_PlateInfo”中。您可以根据需要移动或删除它。 this.dt_PlateInfoTableAdapter.Fill(this.myDataSet.Dt_PlateInfo); DGV_plat.ClearSelection(); Change_pl(DGV_plat); } }
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; }
private void DGV_plat_Leave(object sender, EventArgs e) { DGV_plat.ClearSelection(); }