private void ajustarResolucion()
        {
            FormResizer objFormResizer = new FormResizer();

            int Width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Width;
            int Height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Height;
            string dim = Width.ToString() + "x" + Height.ToString();

            switch (dim)
            {
                case "800x600":
                    Height += 90;
                    Width += 315;
                    break;
                case "1024x768":
                    Height -= 60;
                    Width += 80;
                    break;
                case "1366x768":
                    Height -= 60;
                    Width -= 260;
                    break;
            };
            objFormResizer.ResizeForm(this, Height, Width);
        }
        private void FormularioOperador_Load(object sender, EventArgs e)
        {
            FormResizer objFormResizer = new FormResizer();
            objFormResizer.ResizeForm(this, 864, 1152);

            try
            {

                if (!RS232.IsOpen)
                {
                    this.myDelegate = new AddDataDelegate(AddDataMethod);
                    RS232.DataReceived += new SerialDataReceivedEventHandler(RS232_DataReceived);
                    RS232.Open();
                }

            }
            catch (Exception error)
            {
                //loggerError(error.Message);
            }
        }
 private void InputMaquinista_Load(object sender, EventArgs e)
 {
     FormResizer objFormResizer = new FormResizer();
     objFormResizer.ResizeForm(this, 864, 1152);
 }