using System; using System.ComponentModel; using System.Drawing; using System.Threading; using System.Windows.Forms; namespace LP; public class FormGanTa1Hui : Form { private delegate void delegateTextBoxSetText(TextBox textBox, string value); private delegate void delegateListBoxSetIndex(ListBox listBox, string value); private delegate void delegateFormSetTitle(Form form, string value); private delegate void delegateFormHide(Form form); public FormDesktop desktop = null; public string mTitle = ""; public GanTaData mGanTaData = null; private IContainer components = null; private Panel panelGanTa1Hui; private Button buttonCancel; private Button buttonOK; private ListBox listBox_DiXing_GanTa; private TextBox textBox_BLQ_C_GanTa; private TextBox textBox_BLQ_B_GanTa; private TextBox textBox_BLQ_A_GanTa; private Label label6; private TextBox textBox_XiangXu1_GanTa; private Label label5; private TextBox textBox_JYZCD_GanTa; private Label label11; private TextBox textBox_BLXGD_GanTa; private Label label10; private TextBox textBox_BLZJ_R_GanTa; private Label label9; private TextBox textBox_BLZJ_L_GanTa; private Label label8; private TextBox textBox_HaiBa_GanTa; private Label label15; private TextBox textBox_DaHao_GanTa; private Label label14; private TextBox textBox_XiaoHao_GanTa; private Label label13; private TextBox textBox_WeiDu_GanTa; private Label label4; private TextBox textBox_DMQJ2_GanTa; private Label label17; private TextBox textBox_DMQJ1_GanTa; private Label label16; private TextBox textBox_JingDu_GanTa; private Label label3; private TextBox textBox_Model_GanTa; private Label label2; private TextBox textBox_1GD_Zhong_GanTa; private TextBox textBox_Current_b_GanTa; private TextBox textBox_Current_a_GanTa; private TextBox textBox_1ZJ_Zhong_GanTa; private Label label48; private Label label47; private Label label23; private Label label19; private TextBox textBox_1GD_Xia_GanTa; private Label label22; private TextBox textBox_1ZJ_Xia_GanTa; private TextBox textBox_1GD_Shang_GanTa; private Label label20; private Label label21; private TextBox textBox_1ZJ_Shang_GanTa; private Label label18; private TextBox textBox_ID_GanTa; private Label label1; private TextBox textBox_DSMD_GanTa; private Label label46; private TextBox textBox_RaoJiFanJi_GanTa; private Label label45; private TextBox textBox_ZXNZ_GanTa; private Label label44; private TextBox textBox_Angle_GanTa; private Label label43; private TextBox textBox_HuGao_GanTa; private Label label12; private TextBox textBox_JDDZ_GanTa; private Label label42; private Label label7; private Label label49; private TextBox textBox_TaXing_GanTa; public FormGanTa1Hui() { InitializeComponent(); } private void FormGanTa1Hui_Load(object sender, EventArgs e) { mTitle = "编辑杆塔属性"; MyFormSetTitle(this, ""); textBox_ID_GanTa.ReadOnly = true; textBox_RaoJiFanJi_GanTa.ReadOnly = true; if (mGanTaData == null) { mGanTaData = new GanTaData(); } MyInput_GanTaData(); } private void FormGanTa1Hui_FormClosing(object sender, FormClosingEventArgs e) { } public void MyInput_GanTaData() { mGanTaData.CopyFrom_GanTaData(desktop.mTheGanTaData); MyTextBoxSetText(textBox_ID_GanTa, mGanTaData.mID_GanTa ?? ""); MyTextBoxSetText(textBox_Model_GanTa, mGanTaData.mModel_GanTa ?? ""); MyTextBoxSetText(textBox_JingDu_GanTa, $"{mGanTaData.mJingDu_GanTa}"); MyTextBoxSetText(textBox_WeiDu_GanTa, $"{mGanTaData.mWeiDu_GanTa}"); MyTextBoxSetText(textBox_XiaoHao_GanTa, $"{mGanTaData.mXiaoHao_GanTa}"); MyTextBoxSetText(textBox_DaHao_GanTa, $"{mGanTaData.mDaHao_GanTa}"); MyTextBoxSetText(textBox_HaiBa_GanTa, $"{mGanTaData.mHaiBa_GanTa}"); MyTextBoxSetText(textBox_DMQJ1_GanTa, $"{mGanTaData.mDMQJ1_GanTa}"); MyTextBoxSetText(textBox_DMQJ2_GanTa, $"{mGanTaData.mDMQJ2_GanTa}"); MyTextBoxSetText(textBox_BLZJ_L_GanTa, $"{mGanTaData.mBLZJ_L_GanTa}"); MyTextBoxSetText(textBox_BLZJ_R_GanTa, $"{mGanTaData.mBLZJ_R_GanTa}"); MyTextBoxSetText(textBox_BLXGD_GanTa, $"{mGanTaData.mBLXGD_GanTa}"); MyTextBoxSetText(textBox_JYZCD_GanTa, $"{mGanTaData.mJYZCD_GanTa}"); MyTextBoxSetText(textBox_JDDZ_GanTa, $"{mGanTaData.mJDDZ_GanTa}"); MyTextBoxSetText(textBox_HuGao_GanTa, $"{mGanTaData.mHuGao_GanTa}"); MyTextBoxSetText(textBox_XiangXu1_GanTa, mGanTaData.mXiangXu1_GanTa ?? ""); MyTextBoxSetText(textBox_BLQ_A_GanTa, mGanTaData.mBLQ_A_GanTa ?? ""); MyTextBoxSetText(textBox_BLQ_B_GanTa, mGanTaData.mBLQ_B_GanTa ?? ""); MyTextBoxSetText(textBox_BLQ_C_GanTa, mGanTaData.mBLQ_C_GanTa ?? ""); MyTextBoxSetText(textBox_1ZJ_Shang_GanTa, $"{mGanTaData.m1ZJ_Shang_GanTa}"); MyTextBoxSetText(textBox_1ZJ_Zhong_GanTa, $"{mGanTaData.m1ZJ_Zhong_GanTa}"); MyTextBoxSetText(textBox_1ZJ_Xia_GanTa, $"{mGanTaData.m1ZJ_Xia_GanTa}"); MyTextBoxSetText(textBox_1GD_Shang_GanTa, $"{mGanTaData.m1GD_Shang_GanTa}"); MyTextBoxSetText(textBox_1GD_Zhong_GanTa, $"{mGanTaData.m1GD_Zhong_GanTa}"); MyTextBoxSetText(textBox_1GD_Xia_GanTa, $"{mGanTaData.m1GD_Xia_GanTa}"); MyListBoxSetIndex(listBox_DiXing_GanTa, mGanTaData.mDiXing_GanTa ?? ""); MyTextBoxSetText(textBox_Angle_GanTa, $"{mGanTaData.mAngle_GanTa}"); MyTextBoxSetText(textBox_ZXNZ_GanTa, mGanTaData.mZXNZ_GanTa ?? ""); MyTextBoxSetText(textBox_RaoJiFanJi_GanTa, $"{mGanTaData.mRaoJiFanJi_GanTa}"); MyTextBoxSetText(textBox_DSMD_GanTa, $"{mGanTaData.mDSMD_GanTa}"); MyTextBoxSetText(textBox_Current_a_GanTa, $"{mGanTaData.mCurrent_a_GanTa}"); MyTextBoxSetText(textBox_Current_b_GanTa, $"{mGanTaData.mCurrent_b_GanTa}"); MyTextBoxSetText(textBox_TaXing_GanTa, mGanTaData.mTaXing_GanTa ?? ""); } public void Destroy() { mTitle = ""; mGanTaData = null; } private void buttonOK_Click(object sender, EventArgs e) { if (!MyInputIsRight()) { MyFormSetTitle(this, "数据错误!!! 先修订,然后点击“确定”"); return; } Thread thread = new Thread(MyThreadOK); thread.Start(); } private void MyThreadOK() { try { desktop.mTheGanTaData.CopyFrom_GanTaData(mGanTaData); base.DialogResult = DialogResult.OK; MyFormHide(this); } catch (Exception ex) { MyLog.AddLog("FormGanTa1Hui.cs MyThreadOK() Exception=" + ex.Message); } } private void buttonCancel_Click(object sender, EventArgs e) { Thread thread = new Thread(MyThreadCancel); thread.Start(); } private void MyThreadCancel() { try { base.DialogResult = DialogResult.Cancel; MyFormHide(this); } catch (Exception ex) { MyLog.AddLog("FormGanTa1Hui.cs MyThreadCancel() Exception=" + ex.Message); } } private bool MyInputIsRight() { bool result = false; int num = 0; double num2 = 0.0; mGanTaData.mID_GanTa = textBox_ID_GanTa.Text.Trim(); mGanTaData.mModel_GanTa = textBox_Model_GanTa.Text.Trim(); try { num2 = Convert.ToDouble(textBox_JingDu_GanTa.Text.Trim()); mGanTaData.mJingDu_GanTa = num2; } catch (Exception) { textBox_JingDu_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_WeiDu_GanTa.Text.Trim()); mGanTaData.mWeiDu_GanTa = num2; } catch (Exception) { textBox_WeiDu_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_XiaoHao_GanTa.Text.Trim()); mGanTaData.mXiaoHao_GanTa = num2; } catch (Exception) { textBox_XiaoHao_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_DaHao_GanTa.Text.Trim()); mGanTaData.mDaHao_GanTa = num2; } catch (Exception) { textBox_DaHao_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_HaiBa_GanTa.Text.Trim()); mGanTaData.mHaiBa_GanTa = num2; } catch (Exception) { textBox_HaiBa_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_DMQJ1_GanTa.Text.Trim()); mGanTaData.mDMQJ1_GanTa = num2; } catch (Exception) { textBox_DMQJ1_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_DMQJ2_GanTa.Text.Trim()); mGanTaData.mDMQJ2_GanTa = num2; } catch (Exception) { textBox_DMQJ2_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_BLZJ_L_GanTa.Text.Trim()); mGanTaData.mBLZJ_L_GanTa = num2; } catch (Exception) { textBox_BLZJ_L_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_BLZJ_R_GanTa.Text.Trim()); mGanTaData.mBLZJ_R_GanTa = num2; } catch (Exception) { textBox_BLZJ_R_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_BLXGD_GanTa.Text.Trim()); mGanTaData.mBLXGD_GanTa = num2; } catch (Exception) { textBox_BLXGD_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_JYZCD_GanTa.Text.Trim()); mGanTaData.mJYZCD_GanTa = num2; } catch (Exception) { textBox_JYZCD_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_JDDZ_GanTa.Text.Trim()); mGanTaData.mJDDZ_GanTa = num2; } catch (Exception) { textBox_JDDZ_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_HuGao_GanTa.Text.Trim()); mGanTaData.mHuGao_GanTa = num2; } catch (Exception) { textBox_HuGao_GanTa.Focus(); return result; } mGanTaData.mXiangXu1_GanTa = textBox_XiangXu1_GanTa.Text.Trim(); mGanTaData.mBLQ_A_GanTa = textBox_BLQ_A_GanTa.Text.Trim(); mGanTaData.mBLQ_B_GanTa = textBox_BLQ_B_GanTa.Text.Trim(); mGanTaData.mBLQ_C_GanTa = textBox_BLQ_C_GanTa.Text.Trim(); try { num2 = Convert.ToDouble(textBox_1ZJ_Shang_GanTa.Text.Trim()); mGanTaData.m1ZJ_Shang_GanTa = num2; } catch (Exception) { textBox_1ZJ_Shang_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_1ZJ_Zhong_GanTa.Text.Trim()); mGanTaData.m1ZJ_Zhong_GanTa = num2; } catch (Exception) { textBox_1ZJ_Zhong_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_1ZJ_Xia_GanTa.Text.Trim()); mGanTaData.m1ZJ_Xia_GanTa = num2; } catch (Exception) { textBox_1ZJ_Xia_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_1GD_Shang_GanTa.Text.Trim()); mGanTaData.m1GD_Shang_GanTa = num2; } catch (Exception) { textBox_1GD_Shang_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_1GD_Zhong_GanTa.Text.Trim()); mGanTaData.m1GD_Zhong_GanTa = num2; } catch (Exception) { textBox_1GD_Zhong_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_1GD_Xia_GanTa.Text.Trim()); mGanTaData.m1GD_Xia_GanTa = num2; } catch (Exception) { textBox_1GD_Xia_GanTa.Focus(); return result; } mGanTaData.mDiXing_GanTa = listBox_DiXing_GanTa.SelectedItem.ToString().Trim(); try { num2 = Convert.ToDouble(textBox_Angle_GanTa.Text.Trim()); mGanTaData.mAngle_GanTa = num2; } catch (Exception) { textBox_Angle_GanTa.Focus(); return result; } mGanTaData.mZXNZ_GanTa = textBox_ZXNZ_GanTa.Text.Trim(); try { num = Convert.ToInt32(textBox_RaoJiFanJi_GanTa.Text.Trim()); mGanTaData.mRaoJiFanJi_GanTa = num; } catch (Exception) { textBox_RaoJiFanJi_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_DSMD_GanTa.Text.Trim()); mGanTaData.mDSMD_GanTa = num2; } catch (Exception) { textBox_DSMD_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_Current_a_GanTa.Text.Trim()); mGanTaData.mCurrent_a_GanTa = num2; } catch (Exception) { textBox_Current_a_GanTa.Focus(); return result; } try { num2 = Convert.ToDouble(textBox_Current_b_GanTa.Text.Trim()); mGanTaData.mCurrent_b_GanTa = num2; } catch (Exception) { textBox_Current_b_GanTa.Focus(); return result; } mGanTaData.mTaXing_GanTa = textBox_TaXing_GanTa.Text.Trim(); return true; } public void MyTextBoxSetText(TextBox textBox, string value) { if (textBox.InvokeRequired) { delegateTextBoxSetText method = MyTextBoxSetText; textBox.Invoke(method, textBox, value); } else { textBox.Text = value; } } public void MyListBoxSetIndex(ListBox listBox, string value) { if (listBox.InvokeRequired) { delegateListBoxSetIndex method = MyListBoxSetIndex; listBox.Invoke(method, listBox, value); } else if (string.IsNullOrEmpty(value)) { listBox.SelectedIndex = 0; } else if (value.Equals("平原")) { listBox.SelectedIndex = 0; } else if (value.Equals("山区")) { listBox.SelectedIndex = 1; } else { listBox.SelectedIndex = 0; } } public void MyFormSetTitle(Form form, string value) { if (form.InvokeRequired) { delegateFormSetTitle method = MyFormSetTitle; form.Invoke(method, form, value); return; } if (string.IsNullOrEmpty(value)) { form.Text = mTitle; } if (!string.IsNullOrEmpty(value)) { form.Text = mTitle + " —— " + value; } } public void MyFormHide(Form form) { try { if (form.InvokeRequired) { delegateFormHide method = MyFormHide; form.Invoke(method, form); } else { form.Hide(); } } catch (Exception) { } } protected override void Dispose(bool disposing) { if (disposing && components != null) { components.Dispose(); } base.Dispose(disposing); } private void InitializeComponent() { this.panelGanTa1Hui = new System.Windows.Forms.Panel(); this.label49 = new System.Windows.Forms.Label(); this.textBox_TaXing_GanTa = new System.Windows.Forms.TextBox(); this.listBox_DiXing_GanTa = new System.Windows.Forms.ListBox(); this.textBox_BLQ_C_GanTa = new System.Windows.Forms.TextBox(); this.textBox_BLQ_B_GanTa = new System.Windows.Forms.TextBox(); this.textBox_BLQ_A_GanTa = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.textBox_XiangXu1_GanTa = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.textBox_JYZCD_GanTa = new System.Windows.Forms.TextBox(); this.label11 = new System.Windows.Forms.Label(); this.textBox_BLXGD_GanTa = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.textBox_BLZJ_R_GanTa = new System.Windows.Forms.TextBox(); this.label9 = new System.Windows.Forms.Label(); this.textBox_BLZJ_L_GanTa = new System.Windows.Forms.TextBox(); this.label8 = new System.Windows.Forms.Label(); this.textBox_HaiBa_GanTa = new System.Windows.Forms.TextBox(); this.label15 = new System.Windows.Forms.Label(); this.textBox_DaHao_GanTa = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.textBox_XiaoHao_GanTa = new System.Windows.Forms.TextBox(); this.label13 = new System.Windows.Forms.Label(); this.textBox_WeiDu_GanTa = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.textBox_DMQJ2_GanTa = new System.Windows.Forms.TextBox(); this.label17 = new System.Windows.Forms.Label(); this.textBox_DMQJ1_GanTa = new System.Windows.Forms.TextBox(); this.label16 = new System.Windows.Forms.Label(); this.textBox_JingDu_GanTa = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.textBox_Model_GanTa = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.textBox_1GD_Zhong_GanTa = new System.Windows.Forms.TextBox(); this.textBox_Current_b_GanTa = new System.Windows.Forms.TextBox(); this.textBox_Current_a_GanTa = new System.Windows.Forms.TextBox(); this.textBox_1ZJ_Zhong_GanTa = new System.Windows.Forms.TextBox(); this.label48 = new System.Windows.Forms.Label(); this.label47 = new System.Windows.Forms.Label(); this.label23 = new System.Windows.Forms.Label(); this.label19 = new System.Windows.Forms.Label(); this.textBox_1GD_Xia_GanTa = new System.Windows.Forms.TextBox(); this.label22 = new System.Windows.Forms.Label(); this.textBox_1ZJ_Xia_GanTa = new System.Windows.Forms.TextBox(); this.textBox_1GD_Shang_GanTa = new System.Windows.Forms.TextBox(); this.label20 = new System.Windows.Forms.Label(); this.label21 = new System.Windows.Forms.Label(); this.textBox_1ZJ_Shang_GanTa = new System.Windows.Forms.TextBox(); this.label18 = new System.Windows.Forms.Label(); this.textBox_ID_GanTa = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.textBox_DSMD_GanTa = new System.Windows.Forms.TextBox(); this.label46 = new System.Windows.Forms.Label(); this.textBox_RaoJiFanJi_GanTa = new System.Windows.Forms.TextBox(); this.label45 = new System.Windows.Forms.Label(); this.textBox_ZXNZ_GanTa = new System.Windows.Forms.TextBox(); this.label44 = new System.Windows.Forms.Label(); this.textBox_Angle_GanTa = new System.Windows.Forms.TextBox(); this.label43 = new System.Windows.Forms.Label(); this.textBox_HuGao_GanTa = new System.Windows.Forms.TextBox(); this.label12 = new System.Windows.Forms.Label(); this.textBox_JDDZ_GanTa = new System.Windows.Forms.TextBox(); this.label42 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); this.panelGanTa1Hui.SuspendLayout(); base.SuspendLayout(); this.panelGanTa1Hui.AutoScroll = true; this.panelGanTa1Hui.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.panelGanTa1Hui.Controls.Add(this.label49); this.panelGanTa1Hui.Controls.Add(this.textBox_TaXing_GanTa); this.panelGanTa1Hui.Controls.Add(this.listBox_DiXing_GanTa); this.panelGanTa1Hui.Controls.Add(this.textBox_BLQ_C_GanTa); this.panelGanTa1Hui.Controls.Add(this.textBox_BLQ_B_GanTa); this.panelGanTa1Hui.Controls.Add(this.textBox_BLQ_A_GanTa); this.panelGanTa1Hui.Controls.Add(this.label6); this.panelGanTa1Hui.Controls.Add(this.textBox_XiangXu1_GanTa); this.panelGanTa1Hui.Controls.Add(this.label5); this.panelGanTa1Hui.Controls.Add(this.textBox_JYZCD_GanTa); this.panelGanTa1Hui.Controls.Add(this.label11); this.panelGanTa1Hui.Controls.Add(this.textBox_BLXGD_GanTa); this.panelGanTa1Hui.Controls.Add(this.label10); this.panelGanTa1Hui.Controls.Add(this.textBox_BLZJ_R_GanTa); this.panelGanTa1Hui.Controls.Add(this.label9); this.panelGanTa1Hui.Controls.Add(this.textBox_BLZJ_L_GanTa); this.panelGanTa1Hui.Controls.Add(this.label8); this.panelGanTa1Hui.Controls.Add(this.textBox_HaiBa_GanTa); this.panelGanTa1Hui.Controls.Add(this.label15); this.panelGanTa1Hui.Controls.Add(this.textBox_DaHao_GanTa); this.panelGanTa1Hui.Controls.Add(this.label14); this.panelGanTa1Hui.Controls.Add(this.textBox_XiaoHao_GanTa); this.panelGanTa1Hui.Controls.Add(this.label13); this.panelGanTa1Hui.Controls.Add(this.textBox_WeiDu_GanTa); this.panelGanTa1Hui.Controls.Add(this.label4); this.panelGanTa1Hui.Controls.Add(this.textBox_DMQJ2_GanTa); this.panelGanTa1Hui.Controls.Add(this.label17); this.panelGanTa1Hui.Controls.Add(this.textBox_DMQJ1_GanTa); this.panelGanTa1Hui.Controls.Add(this.label16); this.panelGanTa1Hui.Controls.Add(this.textBox_JingDu_GanTa); this.panelGanTa1Hui.Controls.Add(this.label3); this.panelGanTa1Hui.Controls.Add(this.textBox_Model_GanTa); this.panelGanTa1Hui.Controls.Add(this.label2); this.panelGanTa1Hui.Controls.Add(this.textBox_1GD_Zhong_GanTa); this.panelGanTa1Hui.Controls.Add(this.textBox_Current_b_GanTa); this.panelGanTa1Hui.Controls.Add(this.textBox_Current_a_GanTa); this.panelGanTa1Hui.Controls.Add(this.textBox_1ZJ_Zhong_GanTa); this.panelGanTa1Hui.Controls.Add(this.label48); this.panelGanTa1Hui.Controls.Add(this.label47); this.panelGanTa1Hui.Controls.Add(this.label23); this.panelGanTa1Hui.Controls.Add(this.label19); this.panelGanTa1Hui.Controls.Add(this.textBox_1GD_Xia_GanTa); this.panelGanTa1Hui.Controls.Add(this.label22); this.panelGanTa1Hui.Controls.Add(this.textBox_1ZJ_Xia_GanTa); this.panelGanTa1Hui.Controls.Add(this.textBox_1GD_Shang_GanTa); this.panelGanTa1Hui.Controls.Add(this.label20); this.panelGanTa1Hui.Controls.Add(this.label21); this.panelGanTa1Hui.Controls.Add(this.textBox_1ZJ_Shang_GanTa); this.panelGanTa1Hui.Controls.Add(this.label18); this.panelGanTa1Hui.Controls.Add(this.textBox_ID_GanTa); this.panelGanTa1Hui.Controls.Add(this.label1); this.panelGanTa1Hui.Controls.Add(this.textBox_DSMD_GanTa); this.panelGanTa1Hui.Controls.Add(this.label46); this.panelGanTa1Hui.Controls.Add(this.textBox_RaoJiFanJi_GanTa); this.panelGanTa1Hui.Controls.Add(this.label45); this.panelGanTa1Hui.Controls.Add(this.textBox_ZXNZ_GanTa); this.panelGanTa1Hui.Controls.Add(this.label44); this.panelGanTa1Hui.Controls.Add(this.textBox_Angle_GanTa); this.panelGanTa1Hui.Controls.Add(this.label43); this.panelGanTa1Hui.Controls.Add(this.textBox_HuGao_GanTa); this.panelGanTa1Hui.Controls.Add(this.label12); this.panelGanTa1Hui.Controls.Add(this.textBox_JDDZ_GanTa); this.panelGanTa1Hui.Controls.Add(this.label42); this.panelGanTa1Hui.Controls.Add(this.label7); this.panelGanTa1Hui.Controls.Add(this.buttonCancel); this.panelGanTa1Hui.Controls.Add(this.buttonOK); this.panelGanTa1Hui.Dock = System.Windows.Forms.DockStyle.Fill; this.panelGanTa1Hui.Location = new System.Drawing.Point(0, 0); this.panelGanTa1Hui.Name = "panelGanTa1Hui"; this.panelGanTa1Hui.Size = new System.Drawing.Size(635, 573); this.panelGanTa1Hui.TabIndex = 0; this.label49.AutoSize = true; this.label49.Location = new System.Drawing.Point(237, 393); this.label49.Name = "label49"; this.label49.Size = new System.Drawing.Size(29, 12); this.label49.TabIndex = 118; this.label49.Text = "塔型"; this.textBox_TaXing_GanTa.Location = new System.Drawing.Point(240, 408); this.textBox_TaXing_GanTa.Name = "textBox_TaXing_GanTa"; this.textBox_TaXing_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_TaXing_GanTa.TabIndex = 21; this.listBox_DiXing_GanTa.FormattingEnabled = true; this.listBox_DiXing_GanTa.ItemHeight = 12; this.listBox_DiXing_GanTa.Items.AddRange(new object[2] { "平原", "山区" }); this.listBox_DiXing_GanTa.Location = new System.Drawing.Point(447, 52); this.listBox_DiXing_GanTa.Name = "listBox_DiXing_GanTa"; this.listBox_DiXing_GanTa.Size = new System.Drawing.Size(160, 16); this.listBox_DiXing_GanTa.TabIndex = 22; this.textBox_BLQ_C_GanTa.Location = new System.Drawing.Point(313, 94); this.textBox_BLQ_C_GanTa.Name = "textBox_BLQ_C_GanTa"; this.textBox_BLQ_C_GanTa.Size = new System.Drawing.Size(31, 21); this.textBox_BLQ_C_GanTa.TabIndex = 14; this.textBox_BLQ_B_GanTa.Location = new System.Drawing.Point(276, 94); this.textBox_BLQ_B_GanTa.Name = "textBox_BLQ_B_GanTa"; this.textBox_BLQ_B_GanTa.Size = new System.Drawing.Size(31, 21); this.textBox_BLQ_B_GanTa.TabIndex = 13; this.textBox_BLQ_A_GanTa.Location = new System.Drawing.Point(239, 94); this.textBox_BLQ_A_GanTa.Name = "textBox_BLQ_A_GanTa"; this.textBox_BLQ_A_GanTa.Size = new System.Drawing.Size(31, 21); this.textBox_BLQ_A_GanTa.TabIndex = 12; this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(239, 79); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(161, 12); this.label6.TabIndex = 108; this.label6.Text = "A相 B相 C相 是否安装避雷器"; this.textBox_XiangXu1_GanTa.Location = new System.Drawing.Point(239, 47); this.textBox_XiangXu1_GanTa.Name = "textBox_XiangXu1_GanTa"; this.textBox_XiangXu1_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_XiangXu1_GanTa.TabIndex = 11; this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(239, 32); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(29, 12); this.label5.TabIndex = 116; this.label5.Text = "相序"; this.textBox_JYZCD_GanTa.Location = new System.Drawing.Point(25, 491); this.textBox_JYZCD_GanTa.Name = "textBox_JYZCD_GanTa"; this.textBox_JYZCD_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_JYZCD_GanTa.TabIndex = 10; this.label11.AutoSize = true; this.label11.Location = new System.Drawing.Point(25, 476); this.label11.Name = "label11"; this.label11.Size = new System.Drawing.Size(101, 12); this.label11.TabIndex = 106; this.label11.Text = "绝缘子串长度(mm)"; this.textBox_BLXGD_GanTa.Location = new System.Drawing.Point(25, 448); this.textBox_BLXGD_GanTa.Name = "textBox_BLXGD_GanTa"; this.textBox_BLXGD_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_BLXGD_GanTa.TabIndex = 9; this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(25, 433); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(83, 12); this.label10.TabIndex = 101; this.label10.Text = "避雷线高度(m)"; this.textBox_BLZJ_R_GanTa.Location = new System.Drawing.Point(25, 404); this.textBox_BLZJ_R_GanTa.Name = "textBox_BLZJ_R_GanTa"; this.textBox_BLZJ_R_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_BLZJ_R_GanTa.TabIndex = 8; this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(25, 389); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(83, 12); this.label9.TabIndex = 98; this.label9.Text = "右避雷中距(m)"; this.textBox_BLZJ_L_GanTa.Location = new System.Drawing.Point(25, 363); this.textBox_BLZJ_L_GanTa.Name = "textBox_BLZJ_L_GanTa"; this.textBox_BLZJ_L_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_BLZJ_L_GanTa.TabIndex = 7; this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(25, 348); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(83, 12); this.label8.TabIndex = 96; this.label8.Text = "左避雷中距(m)"; this.textBox_HaiBa_GanTa.Location = new System.Drawing.Point(25, 315); this.textBox_HaiBa_GanTa.Name = "textBox_HaiBa_GanTa"; this.textBox_HaiBa_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_HaiBa_GanTa.TabIndex = 6; this.label15.AutoSize = true; this.label15.Location = new System.Drawing.Point(25, 300); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(71, 12); this.label15.TabIndex = 92; this.label15.Text = "海拔高度(m)"; this.textBox_DaHao_GanTa.Location = new System.Drawing.Point(25, 273); this.textBox_DaHao_GanTa.Name = "textBox_DaHao_GanTa"; this.textBox_DaHao_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_DaHao_GanTa.TabIndex = 5; this.label14.AutoSize = true; this.label14.Location = new System.Drawing.Point(25, 258); this.label14.Name = "label14"; this.label14.Size = new System.Drawing.Size(83, 12); this.label14.TabIndex = 117; this.label14.Text = "大号侧档距(m)"; this.textBox_XiaoHao_GanTa.Location = new System.Drawing.Point(25, 229); this.textBox_XiaoHao_GanTa.Name = "textBox_XiaoHao_GanTa"; this.textBox_XiaoHao_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_XiaoHao_GanTa.TabIndex = 4; this.label13.AutoSize = true; this.label13.Location = new System.Drawing.Point(25, 214); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(83, 12); this.label13.TabIndex = 94; this.label13.Text = "小号侧档距(m)"; this.textBox_WeiDu_GanTa.Location = new System.Drawing.Point(25, 185); this.textBox_WeiDu_GanTa.Name = "textBox_WeiDu_GanTa"; this.textBox_WeiDu_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_WeiDu_GanTa.TabIndex = 3; this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(25, 170); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(53, 12); this.label4.TabIndex = 100; this.label4.Text = "纬度(°)"; this.textBox_DMQJ2_GanTa.Location = new System.Drawing.Point(446, 494); this.textBox_DMQJ2_GanTa.Name = "textBox_DMQJ2_GanTa"; this.textBox_DMQJ2_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_DMQJ2_GanTa.TabIndex = 32; this.label17.AutoSize = true; this.label17.Location = new System.Drawing.Point(446, 479); this.label17.Name = "label17"; this.label17.Size = new System.Drawing.Size(83, 12); this.label17.TabIndex = 103; this.label17.Text = "地面倾角2(°)"; this.textBox_DMQJ1_GanTa.Location = new System.Drawing.Point(446, 453); this.textBox_DMQJ1_GanTa.Name = "textBox_DMQJ1_GanTa"; this.textBox_DMQJ1_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_DMQJ1_GanTa.TabIndex = 31; this.label16.AutoSize = true; this.label16.Location = new System.Drawing.Point(446, 438); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(83, 12); this.label16.TabIndex = 110; this.label16.Text = "地面倾角1(°)"; this.textBox_JingDu_GanTa.Location = new System.Drawing.Point(25, 140); this.textBox_JingDu_GanTa.Name = "textBox_JingDu_GanTa"; this.textBox_JingDu_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_JingDu_GanTa.TabIndex = 2; this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(25, 125); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(53, 12); this.label3.TabIndex = 112; this.label3.Text = "经度(°)"; this.textBox_Model_GanTa.Location = new System.Drawing.Point(25, 93); this.textBox_Model_GanTa.Name = "textBox_Model_GanTa"; this.textBox_Model_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_Model_GanTa.TabIndex = 1; this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(25, 78); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(53, 12); this.label2.TabIndex = 113; this.label2.Text = "杆塔模型"; this.textBox_1GD_Zhong_GanTa.Location = new System.Drawing.Point(239, 320); this.textBox_1GD_Zhong_GanTa.Name = "textBox_1GD_Zhong_GanTa"; this.textBox_1GD_Zhong_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_1GD_Zhong_GanTa.TabIndex = 19; this.textBox_Current_b_GanTa.Location = new System.Drawing.Point(446, 408); this.textBox_Current_b_GanTa.Name = "textBox_Current_b_GanTa"; this.textBox_Current_b_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_Current_b_GanTa.TabIndex = 30; this.textBox_Current_a_GanTa.Location = new System.Drawing.Point(446, 363); this.textBox_Current_a_GanTa.Name = "textBox_Current_a_GanTa"; this.textBox_Current_a_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_Current_a_GanTa.TabIndex = 29; this.textBox_1ZJ_Zhong_GanTa.Location = new System.Drawing.Point(239, 185); this.textBox_1ZJ_Zhong_GanTa.Name = "textBox_1ZJ_Zhong_GanTa"; this.textBox_1ZJ_Zhong_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_1ZJ_Zhong_GanTa.TabIndex = 16; this.label48.AutoSize = true; this.label48.Location = new System.Drawing.Point(446, 393); this.label48.Name = "label48"; this.label48.Size = new System.Drawing.Size(71, 12); this.label48.TabIndex = 70; this.label48.Text = "雷电流幅值b"; this.label47.AutoSize = true; this.label47.Location = new System.Drawing.Point(446, 348); this.label47.Name = "label47"; this.label47.Size = new System.Drawing.Size(71, 12); this.label47.TabIndex = 68; this.label47.Text = "雷电流幅值a"; this.label23.AutoSize = true; this.label23.Location = new System.Drawing.Point(239, 305); this.label23.Name = "label23"; this.label23.Size = new System.Drawing.Size(65, 12); this.label23.TabIndex = 71; this.label23.Text = "B相高度(m)"; this.label19.AutoSize = true; this.label19.Location = new System.Drawing.Point(239, 170); this.label19.Name = "label19"; this.label19.Size = new System.Drawing.Size(65, 12); this.label19.TabIndex = 64; this.label19.Text = "B相中距(m)"; this.textBox_1GD_Xia_GanTa.Location = new System.Drawing.Point(239, 365); this.textBox_1GD_Xia_GanTa.Name = "textBox_1GD_Xia_GanTa"; this.textBox_1GD_Xia_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_1GD_Xia_GanTa.TabIndex = 20; this.label22.AutoSize = true; this.label22.Location = new System.Drawing.Point(239, 350); this.label22.Name = "label22"; this.label22.Size = new System.Drawing.Size(65, 12); this.label22.TabIndex = 87; this.label22.Text = "C相高度(m)"; this.textBox_1ZJ_Xia_GanTa.Location = new System.Drawing.Point(239, 230); this.textBox_1ZJ_Xia_GanTa.Name = "textBox_1ZJ_Xia_GanTa"; this.textBox_1ZJ_Xia_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_1ZJ_Xia_GanTa.TabIndex = 17; this.textBox_1GD_Shang_GanTa.Location = new System.Drawing.Point(239, 275); this.textBox_1GD_Shang_GanTa.Name = "textBox_1GD_Shang_GanTa"; this.textBox_1GD_Shang_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_1GD_Shang_GanTa.TabIndex = 18; this.label20.AutoSize = true; this.label20.Location = new System.Drawing.Point(239, 215); this.label20.Name = "label20"; this.label20.Size = new System.Drawing.Size(65, 12); this.label20.TabIndex = 79; this.label20.Text = "C相中距(m)"; this.label21.AutoSize = true; this.label21.Location = new System.Drawing.Point(239, 260); this.label21.Name = "label21"; this.label21.Size = new System.Drawing.Size(65, 12); this.label21.TabIndex = 81; this.label21.Text = "A相高度(m)"; this.textBox_1ZJ_Shang_GanTa.Location = new System.Drawing.Point(239, 140); this.textBox_1ZJ_Shang_GanTa.Name = "textBox_1ZJ_Shang_GanTa"; this.textBox_1ZJ_Shang_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_1ZJ_Shang_GanTa.TabIndex = 15; this.label18.AutoSize = true; this.label18.Location = new System.Drawing.Point(239, 125); this.label18.Name = "label18"; this.label18.Size = new System.Drawing.Size(65, 12); this.label18.TabIndex = 85; this.label18.Text = "A相中距(m)"; this.textBox_ID_GanTa.Location = new System.Drawing.Point(25, 47); this.textBox_ID_GanTa.Name = "textBox_ID_GanTa"; this.textBox_ID_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_ID_GanTa.TabIndex = 0; this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(25, 32); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(53, 12); this.label1.TabIndex = 86; this.label1.Text = "杆塔编号"; this.textBox_DSMD_GanTa.Location = new System.Drawing.Point(447, 318); this.textBox_DSMD_GanTa.Name = "textBox_DSMD_GanTa"; this.textBox_DSMD_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_DSMD_GanTa.TabIndex = 28; this.label46.AutoSize = true; this.label46.Location = new System.Drawing.Point(445, 303); this.label46.Name = "label46"; this.label46.Size = new System.Drawing.Size(137, 12); this.label46.TabIndex = 59; this.label46.Text = "地闪密度(次/(km^2*年))"; this.textBox_RaoJiFanJi_GanTa.Location = new System.Drawing.Point(446, 272); this.textBox_RaoJiFanJi_GanTa.Name = "textBox_RaoJiFanJi_GanTa"; this.textBox_RaoJiFanJi_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_RaoJiFanJi_GanTa.TabIndex = 27; this.label45.AutoSize = true; this.label45.Location = new System.Drawing.Point(446, 257); this.label45.Name = "label45"; this.label45.Size = new System.Drawing.Size(53, 12); this.label45.TabIndex = 58; this.label45.Text = "绕击反击"; this.textBox_ZXNZ_GanTa.Location = new System.Drawing.Point(447, 227); this.textBox_ZXNZ_GanTa.Name = "textBox_ZXNZ_GanTa"; this.textBox_ZXNZ_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_ZXNZ_GanTa.TabIndex = 26; this.label44.AutoSize = true; this.label44.Location = new System.Drawing.Point(447, 212); this.label44.Name = "label44"; this.label44.Size = new System.Drawing.Size(89, 12); this.label44.TabIndex = 57; this.label44.Text = "直线或耐张杆塔"; this.textBox_Angle_GanTa.Location = new System.Drawing.Point(447, 182); this.textBox_Angle_GanTa.Name = "textBox_Angle_GanTa"; this.textBox_Angle_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_Angle_GanTa.TabIndex = 25; this.label43.AutoSize = true; this.label43.Location = new System.Drawing.Point(447, 167); this.label43.Name = "label43"; this.label43.Size = new System.Drawing.Size(41, 12); this.label43.TabIndex = 56; this.label43.Text = "电角度"; this.textBox_HuGao_GanTa.Location = new System.Drawing.Point(447, 137); this.textBox_HuGao_GanTa.Name = "textBox_HuGao_GanTa"; this.textBox_HuGao_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_HuGao_GanTa.TabIndex = 24; this.label12.AutoSize = true; this.label12.Location = new System.Drawing.Point(447, 122); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(71, 12); this.label12.TabIndex = 55; this.label12.Text = "杆塔呼高(m)"; this.textBox_JDDZ_GanTa.Location = new System.Drawing.Point(447, 92); this.textBox_JDDZ_GanTa.Name = "textBox_JDDZ_GanTa"; this.textBox_JDDZ_GanTa.Size = new System.Drawing.Size(161, 21); this.textBox_JDDZ_GanTa.TabIndex = 23; this.label42.AutoSize = true; this.label42.Location = new System.Drawing.Point(447, 32); this.label42.Name = "label42"; this.label42.Size = new System.Drawing.Size(29, 12); this.label42.TabIndex = 61; this.label42.Text = "地形"; this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(447, 78); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(77, 12); this.label7.TabIndex = 54; this.label7.Text = "接地电阻(Ω)"; this.buttonCancel.Location = new System.Drawing.Point(499, 531); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(108, 28); this.buttonCancel.TabIndex = 34; this.buttonCancel.Text = "取消"; this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new System.EventHandler(buttonCancel_Click); this.buttonOK.Location = new System.Drawing.Point(354, 531); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(108, 28); this.buttonOK.TabIndex = 33; this.buttonOK.Text = "确定"; this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(buttonOK_Click); base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(635, 573); base.Controls.Add(this.panelGanTa1Hui); base.Name = "FormGanTa1Hui"; base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "FormGanTa1Hui"; base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormGanTa1Hui_FormClosing); base.Load += new System.EventHandler(FormGanTa1Hui_Load); this.panelGanTa1Hui.ResumeLayout(false); this.panelGanTa1Hui.PerformLayout(); base.ResumeLayout(false); } }