예제 #1
0
 private void ItererPhase_Selection_Position()
 {
     if (mouse == "Down")
     {
         if (entiteCurrent != null)
         {
             entiteCurrent.x = x - dX;
             entiteCurrent.y = y - dY;
             mcd.reloadPage();
             entiteCurrent.drawEntite(entiteCurrent);
         }
         else if (associationCurrent != null)
         {
             associationCurrent.x = x - dX;
             associationCurrent.y = y - dY;
             mcd.reloadPage();
             associationCurrent.drawAssociation(associationCurrent);
         }
         else if (lienCurrent != null)
         {
             lienCurrent.x = x - dX;
             lienCurrent.y = y - dY;
             mcd.reloadPage();
             lienCurrent.drawLien();
         }
     }
 }
예제 #2
0
        //affichage -------------------------------------------------------------------------------

        public void drawCurrentEntite(int X, int Y)
        {
            entite.drawEntite(entiteCurrent);
            entite.x = X;
            entite.y = Y;
        }