Exemple #1
0
 private void RollOverHandler(object sender, RolloverEventArgs args)
 {
     foreach (var id in args.Picked.GetObjectIds())
     {
         using (Transaction tr = AcadFuncs.GetActiveDb().TransactionManager.StartTransaction())
         {
             Line line = tr.GetObject(id, OpenMode.ForRead) as Line;
             if (null != line)
             {
                 //center = line.Center;
                 p1 = line.StartPoint;
                 p2 = line.EndPoint;
                 break;
             }
         }
     }
 }
Exemple #2
0
 void ts_Rollover(object sender, RolloverEventArgs e)
 {
     processSystemMessage(SystemMessage.ROLLOVER);
 }
 void ts_Rollover(object sender, RolloverEventArgs e)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Event notification for fill server rollover
 /// </summary>
 void m_fs_Rollover(object sender, RolloverEventArgs e)
 {
     Console.WriteLine("{0} rolled", e.FeedConnectionKey.ToString());
 }
 /// <summary>
 /// Event notification for fill server rollover
 /// </summary>
 void m_fs_Rollover(object sender, RolloverEventArgs e)
 {
     Console.WriteLine("{0} rolled", e.FeedConnectionKey.ToString());
 }