コード例 #1
0
        public bool ReactieLaPozitie(Graphics g, Point pPunctDeInteres, bool pReactioneazaChiarDacaEInactiva)
        {
            this.lEsteSelectata = (pReactioneazaChiarDacaEInactiva || !pReactioneazaChiarDacaEInactiva && this.lZiActiva) && this.EsteInInterior(pPunctDeInteres);

            if (this.lZiEvidentiata)
            {
                using (Pen pnEv = new Pen(this.lCuloareZiEvidentiata))
                {
                    IHMUtile.DrawRectangleF(g, this.lEsteSelectata ? IHMUtile.PENSULA_CHENAR_SELECTAT : (this.Data == DateTime.Today) ? IHMUtile.PENSULA_CHENAR : pnEv, this.Chenar);
                }
            }
            else
            {
                IHMUtile.DrawRectangleF(g, this.lEsteSelectata ? IHMUtile.PENSULA_CHENAR_SELECTAT : (this.Data == DateTime.Today) ? IHMUtile.PENSULA_CHENAR : Pens.White, this.Chenar);
            }

            return(this.lEsteSelectata);
        }