Esempio n. 1
0
        private void Options_Load(object sender, EventArgs e)
        {
            // Load settings
            this.listViewOptions.Items[0].Checked = Properties.Settings.Default.bOptionsStats;
            this.listViewOptions.Items[1].Checked = Properties.Settings.Default.bOptionsLog;
            this.listViewOptions.Items[2].Checked = Properties.Settings.Default.bOptionsRescan;
            this.listViewOptions.Items[3].Checked = Properties.Settings.Default.bOptionsAutoUpdate;
            this.listViewOptions.Items[4].Checked = Properties.Settings.Default.bOptionsRestore;
            this.listViewOptions.Items[5].Checked = Properties.Settings.Default.bOptionsShowLog;
            this.listViewOptions.Items[6].Checked = Properties.Settings.Default.bOptionsDelBackup;
            this.listViewOptions.Items[7].Checked = Properties.Settings.Default.bOptionsRemMedia;
            this.listViewOptions.Items[8].Checked = Properties.Settings.Default.bOptionsAutoRepair;
            this.listViewOptions.Items[9].Checked = Properties.Settings.Default.bOptionsAutoExit;

            // Load backup directorys
            this.textBoxBackupFolder.Text = Properties.Settings.Default.strOptionsBackupDir;
            this.textBoxLogFolder.Text    = Properties.Settings.Default.strOptionsLogDir;

            // Load exclude list from settings
            if (Properties.Settings.Default.arrayExcludeList != null)
            {
                this._arrayExclude = new ExcludeList.ExcludeArray(Properties.Settings.Default.arrayExcludeList);
            }

            this.comboBoxDay.DataSource   = Enum.GetValues(typeof(DaysOfTheWeek));
            this.comboBoxDay.SelectedItem = DaysOfTheWeek.Sunday;

            this.comboBoxDate.SelectedIndex = 0;

            PopulateExcludeList();

            GetJobInfo();
        }
 public ExcludeArray(ExcludeArray c)
 {
     if (c.Count > 0)
     {
         foreach (ExcludeItem i in c)
         {
             this.List.Add(i.Clone());
         }
     }
 }