Beispiel #1
0
 private void checkEdit3_CheckedChanged(object sender, EventArgs e)
 {
     if (this.Text == "新建图形")
     {
         //判断是否选择了图形类型
         if (comboBoxType.SelectedItem == null)
         {
             DevExpress.XtraEditors.XtraMessageBox.Show("请选择对应的图形类型", "提示");
             return;
         }
         var graphicsInfo = GraphOpt.GetEmergencyLinkageGraphics();
         if (graphicsInfo != null && !string.IsNullOrWhiteSpace(graphicsInfo.GraphId))
         {
             if (this.checkEdit4.Checked == true)
             {
                 return;
             }
             if (DevExpress.XtraEditors.XtraMessageBox.Show("已存在应急联动图形,确定要把当前图形设置应急联动图形吗?", "提示", MessageBoxButtons.YesNo) == DialogResult.Yes)
             {
                 this.EmergencyLinkageGraphicsId = graphicsInfo.GraphId;
                 this.checkEdit3.Checked         = true;
             }
             else
             {
                 this.checkEdit4.Checked = true;
             }
         }
     }
 }