Esempio n. 1
0
 /// <summary>
 /// 结束连线命令
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void barButtonItem26_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         //barStaticItem1.Caption = "结束拓扑连线";
         //只有拓扑图才支持此命令
         if (GraphOpt.getGraphicNowType() == 1)
         {
             GraphOpt.EndMapTopologyTransDef(mx);
         }
         else
         {
             //DevExpress.XtraEditors.XtraMessageBox.Show("此操作只支持拓扑图!");
             //barStaticItem1.Caption = "此操作只支持拓扑图!";
         }
     }
     catch (Exception ex)
     {
         LogHelper.Error("barButtonItem26_ItemClick" + ex.Message + ex.StackTrace);
     }
 }