示例#1
0
        private void ItererPhase_Selection_Nouvelle()
        {
            entiteCurrent      = mcd.GetEntiteCurrent();
            associationCurrent = mcd.GetAssociationCurrent();

            if (entiteCurrent != null)
            {
                dX = x - entiteCurrent.x;
                dY = y - entiteCurrent.y;
            }
            else if (associationCurrent != null)
            {
                dX = x - associationCurrent.x;
                dY = y - associationCurrent.y;
            }
        }
示例#2
0
        //objet --------------------------------------------------------------------------------

        public void newEntite(int X, int Y, int SizeX, int SizeY, string Code, string Name)
        {
            entite = new Entite(X, Y, countEntite, SizeX, SizeY, Code, Name); // Créer une nouvelle entité (coordonée X,coordonnée Y,compteur d'entitées créer, taille X, taille Y, Couleur,code)

            tabEntite[countEntite] = entite;
        }