ATMLCommonLibrary.controls.ATMLPreviewPanel.previewPanel_Resize C# (CSharp) Method

previewPanel_Resize() private method

private previewPanel_Resize ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void previewPanel_Resize( object sender, EventArgs e )
        {
            if (_officePreviewInstance is IPreviewHandler)
            {
                //Rectangle rect = previewPanel.ClientRectangle;
                try
                {
                    var rect = new RECT();
                    rect.left = 0;
                    rect.top = 0;
                    rect.right = previewPanel.Width;
                    rect.bottom = previewPanel.Height;
                    ( (IPreviewHandler) _officePreviewInstance ).SetRect( ref rect );
                }
                catch (Exception err)
                {
                    LogManager.Debug( err );
                }
            }
        }