protected override void DesenareSpecifica(IDeviceContext dc) { for (int linie = 1; linie < _Inaltime - 1; linie++) { for (int coloana = 1; coloana < _Latime - 1; coloana++) { dc.PutChar(linie, coloana, 'A', this); } } }
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); }