Beispiel #1
0
 private void Cancel_SetLine(string type, Button btnAdd_Line, TextBox tbxLine_X1, TextBox tbxLine_Y1, TextBox tbxLine_X2, TextBox tbxLine_Y2, TextBox tbxLine_X3, TextBox tbxLine_Y3, TextBox tbxLine_Emiss, Button btnClear_Line)//取消设置线
 {
     list_All_Line      = new List <DMSDK.temperLine>();
     list_All_Line      = sqlCreate.Select_Line(StaticClass.Temper_CameraId, type, StaticClass.DataBaseName);
     Struct_temperLine  = (DMSDK.temperLine)list_All_Line[0];
     tbxLine_X1.Text    = Struct_temperLine.X1.ToString();
     tbxLine_Y1.Text    = Struct_temperLine.Y1.ToString();
     tbxLine_X2.Text    = Struct_temperLine.X2.ToString();
     tbxLine_Y2.Text    = Struct_temperLine.Y2.ToString();
     tbxLine_X3.Text    = Struct_temperLine.X3.ToString();
     tbxLine_Y3.Text    = Struct_temperLine.Y3.ToString();
     tbxLine_Emiss.Text = Struct_temperLine.Emiss.ToString();
     foreach (Control control in pnlBtnLine.Controls)
     {
         control.Enabled = true;
     }
     IsSet_Line            = false;
     btnAdd_Line.Text      = "编辑";
     btnClear_Line.Text    = "清除";
     tabSpot.Enabled       = true;
     tabAreas.Enabled      = true;
     tbxLine_X1.Enabled    = false;
     tbxLine_Y1.Enabled    = false;
     tbxLine_X2.Enabled    = false;
     tbxLine_Y2.Enabled    = false;
     tbxLine_X3.Enabled    = false;
     tbxLine_Y3.Enabled    = false;
     tbxLine_Emiss.Enabled = false;
     Dispose_Graph();
 }