Пример #1
0
        private void mc_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmSubSel f     = new frmSubSel();
            string    strKv = dj.Text.Replace("kV", "");

            if (strKv == "")
            {
                strKv = "0";
            }
            if (comboBox1.Text == "规划")
            {
                f.ReDate(layerID, false, true, strKv);
            }
            else
            {
                f.ReDate("", true, true, strKv);
            }
            if (f.ShowDialog() == DialogResult.OK)
            {
                p             = f.ctrlLine_Info1.FocusedObject;
                line.LineName = p.Title;
                line.Length   = p.K5.ToString();
                line.LineType = p.K2;
                mc.Text       = line.LineName;
                cd.Text       = line.Length;
                xh.Text       = line.LineType;
                OldUID        = p.Code;
                p.Code        = line.UID;
                SubUpdate     = true;
            }
        }
Пример #2
0
 private void mc_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     frmSubSel f = new frmSubSel();
     string strKv = dj.Text.Replace("kV", "");
     if (strKv == "") { strKv = "0"; }
     if (comboBox1.Text == "规划")
     {
         f.ReDate(layerID, false, true, strKv);
     }
     else
     {
         f.ReDate("", true, true, strKv);
     }
     if (f.ShowDialog() == DialogResult.OK)
     {
         p = f.ctrlLine_Info1.FocusedObject;
         line.LineName = p.Title;
         line.Length = p.K5.ToString();
         line.LineType = p.K2;
         mc.Text = line.LineName;
         cd.Text = line.Length;
         xh.Text = line.LineType;
         OldUID = p.Code;
         p.Code = line.UID;
         SubUpdate = true;
     }
 }