Example #1
0
        /// <summary>
        /// 新增区域断电配置
        /// </summary>
        private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            SetRegionOutage setRegionOutage = new SetRegionOutage(string.Empty);

            setRegionOutage.ShowDialog();
            btnQuery_ItemClick(sender, e);
        }
Example #2
0
 /// <summary>
 /// 修改区域断电配置
 /// </summary>
 private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         int[] Handle = gridViewModel.GetSelectedRows();
         if (Handle == null || Handle.Length == 0)
         {
             XtraMessageBox.Show("请选择要修改区域断电配置的分析模型", "消息");
             return;
         }
         int             rowHandle       = gridViewModel.FocusedRowHandle;
         string          daID            = gridViewModel.GetRowCellValue(rowHandle, "Id").ToString();  //是ookUpEdit.Properties.ValueMember的值
         SetRegionOutage setRegionOutage = new SetRegionOutage(daID);
         setRegionOutage.ShowDialog();
         btnQuery_ItemClick(sender, e);
     }
     catch
     {
     }
 }