private void initControls() { ConversionPreferences pref = new ConversionPreferences(); pref.BetweenFrameColor = Properties.Settings.Default.BetweenFrameColor; pref.BetweenFrameWidth = Properties.Settings.Default.BetweenFrameWidth; pref.DestBackgroundColor = Properties.Settings.Default.DestBackgroundColor; pref.DrawFlipped = Properties.Settings.Default.DrawFlipped; pref.FramesPerRow = Properties.Settings.Default.FramesPerRow; pref.SrcBackgroundColor = Properties.Settings.Default.SrcBackgroundColor; pref.Zoom = Properties.Settings.Default.Zoom; this.propertyGrid1.SelectedObject = pref; }
private ConversionPreferences getConversionPreferences() { ConversionPreferences pref = new ConversionPreferences(); pref.BetweenFrameColor = Properties.Settings.Default.BetweenFrameColor; pref.BetweenFrameWidth = Properties.Settings.Default.BetweenFrameWidth; pref.DestBackgroundColor = Properties.Settings.Default.DestBackgroundColor; pref.DrawFlipped = Properties.Settings.Default.DrawFlipped; pref.FramesPerRow = Properties.Settings.Default.FramesPerRow; pref.SrcBackgroundColor = Properties.Settings.Default.SrcBackgroundColor; pref.Zoom = Properties.Settings.Default.Zoom; return pref; }