예제 #1
0
        /// <summary>
        /// Called by the owner to initialize
        /// </summary>
        public void SetData(RasterCodecs rasterCodecsInstance)
        {
            // Set the state of the controls

            CodecsRtfLoadOptions rtfLoadOptions = rasterCodecsInstance.Options.Rtf.Load;

            _backColorPanel.BackColor = Converters.ToGdiPlusColor(rtfLoadOptions.BackColor);
        }
예제 #2
0
        /// <summary>
        /// Called by the owner to get the data
        /// </summary>
        public bool GetData(RasterCodecs rasterCodecsInstance)
        {
            CodecsRtfLoadOptions rtfLoadOptions = rasterCodecsInstance.Options.Rtf.Load;

            // Get the RTF load settings
            rtfLoadOptions.BackColor = Converters.FromGdiPlusColor(_backColorPanel.BackColor);

            return(true);
        }