public FullScreenForm(ISlideShowForm parentForm)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            _parentForm = parentForm;

            _graphicsObj = this.CreateGraphics();
        }
Ejemplo n.º 2
0
        public PreviewForm(ISlideShowForm parentForm)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            _aspectRatio = (decimal)(Screen.PrimaryScreen.Bounds.Width) / (decimal)(Screen.PrimaryScreen.Bounds.Height);

            // accomodate for window border width
            Height = 400 + 26;
            //Width = (int) (Height * _aspectRatio);



            _parentForm = parentForm;

            this.ContextMenu = this._parentForm.CtxtMenu;

            _graphicsObj = this.CreateGraphics();
        }