public Preferences()
        {
            InitializeComponent();

            cbxWallpaperStyle.Text = Properties.Settings.Default.wallpaperStyle;
            chkRotate.Checked = Properties.Settings.Default.rotate;
            numRotate.Value = Properties.Settings.Default.rotateTime;
            cbxRotate.Text = Properties.Settings.Default.rotateUnit;
            chkStartup.Checked = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "WallpaperChanger", null) != null;
            chkMinimized.Checked = Properties.Settings.Default.minimized;

            wc = new WallpaperChanger();

            if (Properties.Settings.Default.minimized)
            {
                this.WindowState = FormWindowState.Minimized;
            }
        }
        private void StartApp()
        {
            var program = new WallpaperChanger();

            program.SetUp();
        }