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