﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Shop.SubWindows
{
    public partial class DebugConsole : Form
    {
        // just the line number varibal.
        int i = 0;

        public DebugConsole()
        {
            InitializeComponent();
        }

        /// <summary>
        /// just sending a message wen the application starts
        /// i tostring is the line number writhen to the console
        /// </summary>
        private void DebugConsole_Load(object sender, EventArgs e)
        {
            textBox1.Text = "lien: " + i.ToString() + "  " + "Debug Console Started";
        }

        /// <summary>
        /// writhe to console and add 1 to i so that the appliction gets 
        /// line numbers 
        /// </summary>

        public void Write(string a)
        {
            i++;
            textBox1.Text += "\r\n" + "lien: " + i.ToString() + "  " + a;
        }
    }
}
