Exemplo n.º 1
0
        // ******************** методы ********************
        public HLine(int x1, int x2, int y, char Sym)
        {
            this.x1 = x1;
            this.x2 = x2;
            this.y = y;

            symList = new List<Symbol>();
            for(int i=x1;i<=x2;++i)
            {
                Symbol NextSymbol = new Symbol(i, y, Sym);
                symList.Add(NextSymbol);
            }
        }
Exemplo n.º 2
0
        // ******************** методы ********************
        public VLine(int x, int y1, int y2, char Sym)
        {
            this.x = x;
            this.y1 = y1;
            this.y2 = y2;

            symList = new List<Symbol>();
            for(int i=y1;i<=y2;++i)
            {
                Symbol NextSymbol = new Symbol(x, i, Sym);
                symList.Add(NextSymbol);
            }
        }