//添加变电站
        private void button3_Click(object sender, EventArgs e)
        {
            MsgConvertingStation theConvertingStationHandel = new MsgConvertingStation();

            theConvertingStationHandel.Text          = "添加变电站";
            theConvertingStationHandel.isAddOrUpdate = 0;
            theConvertingStationHandel.ShowDialog();
        }
 //修改变电站
 private void button4_Click(object sender, EventArgs e)
 {
     if (ConvertingStationView.SelectedRows.Count > 0 && ValidateData.CellIsNullOrZero(ConvertingStationView.SelectedRows[0].Cells["stationID"]))
     {
         ConvertingStation content = new ConvertingStation()
         {
             stationName    = ConvertingStationView.SelectedRows[0].Cells["stationName"].Value.ToString(),
             stationID      = ConvertingStationView.SelectedRows[0].Cells["stationID"].Value.ToString(),
             stationRemarks = ConvertingStationView.SelectedRows[0].Cells["stationRemarks"].Value.ToString()
         };
         MsgConvertingStation theConvertingStationHandel = new MsgConvertingStation(content);
         theConvertingStationHandel.Text          = "修改变电站";
         theConvertingStationHandel.isAddOrUpdate = 1;
         theConvertingStationHandel.ShowDialog();
     }
     else
     {
         HandelControls.Msg("请选择要修改的数据", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }