Example #1
0
        protected override void DesenareSpecifica(IDeviceContext dc)
        {
            int i = 0;

            foreach (var linieDeText in _DateSalvate)
            {
                dc.PutString(linieDeText, 1 + i, 1, this);
                i++;
            }
        }
Example #2
0
 protected override void DesenareSpecifica(IDeviceContext dc)
 {
     if (_SavedTexts.Count != 0)
     {
         for (int i = 0; i < _SavedTexts.Count; i++)
         {
             dc.PutString(_SavedTexts[i].text, _SavedTexts[i].line, _SavedTexts[i].column
                          , this, true);
         }
     }
 }
Example #3
0
        public void Desenare(IDeviceContext dc)
        {
            if (_vizibilitate == false)
            {
                return;
            }



            //interiorul ferestrei

            for (int linie = 0; linie < _Inaltime; linie++)
            {
                for (int coloana = 0; coloana < _Latime; coloana++)
                {
                    dc.PutChar(linie, coloana, ' ', this, false);
                }
            }
            //marginea de sus si cea de jos a ferestrei

            for (int coloana = 0; coloana < _Latime; coloana++)
            {
                dc.PutChar(0, coloana, '*', this, false);
                dc.PutChar(_Inaltime - 1, coloana, '*', this, false);
            }
            //margini verticale stanga-dreapta

            for (int linie = 0; linie < _Inaltime; linie++)
            {
                dc.PutChar(linie, 0, '*', this, false);
                dc.PutChar(linie, _Latime - 1, '*', this, false);
            }
            dc.PutString(_Titlu, 0, 2, this, false);

            DesenareSpecifica(dc);
        }