static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SerialSenderFactory fac = new SerialSenderFactory(true /*Fake */);

            Application.Run(new MainForm(fac));
        }
        public MainForm(SerialSenderFactory p_serialSenderFactory )
        {
            InitializeComponent();
            InitializeDrawingPanel();

            statusLabel.Text = "";

            this.panelDrawPad.Size = new System.Drawing.Size(IMAGE_LENGTH + 1, IMAGE_WIDTH+1);
            m_serialSenderFactory = p_serialSenderFactory;

            _serialPort = m_serialSenderFactory.GenerateSerialSender();
        }