Ejemplo n.º 1
0
        private void PozicijaPromijenjena(object sender, EventArgs e)
        {
            PozicijaEventArgs pea      = e as PozicijaEventArgs;
            Ploca             ploca    = pea.Ploca;
            Figura            figura   = sender as Figura;
            Pozicija          pozicija = pea.Pozicija;

            ploca.AzurirajStanje(figura, pozicija);
        }
Ejemplo n.º 2
0
        public void PozicijaSeMijenja(object sender, EventArgs eventArgs)
        {
            Figura            figura = (Figura)sender;
            PozicijaEventArgs pea    = eventArgs as PozicijaEventArgs;

            if (figura.Pozicija != null)
            {
                figura.LegalanPotez(pea.Pozicija, pea.Ploca);
            }
        }