private void Cancel_SetSpot(string type, Button btnAdd_Spot, TextBox tbxSpot_X, TextBox tbxSpot_Y, TextBox tbxSpot_Emiss, Button btnClear_Spot) //取消设置点 { list_All_Spot = new List <DMSDK.temperSpot>(); list_All_Spot = sqlCreate.Select_Spot(StaticClass.Temper_CameraId, type, StaticClass.DataBaseName); Struct_temperSpot = (DMSDK.temperSpot)list_All_Spot[0]; tbxSpot_X.Text = Struct_temperSpot.X1.ToString(); tbxSpot_Y.Text = Struct_temperSpot.Y1.ToString(); tbxSpot_Emiss.Text = Struct_temperSpot.Emiss.ToString(); //文本框数据还原 foreach (Control control in pnlBtnSpot.Controls) //控件enable为true { control.Enabled = true; } IsSet_Spot = false; btnAdd_Spot.Text = "编辑"; btnClear_Spot.Text = "清除"; tabAreas.Enabled = true;//其余控件为false tabLine.Enabled = true; tbxSpot_X.Enabled = false; tbxSpot_Y.Enabled = false; tbxSpot_Emiss.Enabled = false; Dispose_Graph(); }