Пример #1
0
        public void PopulateControls()
        {
            Sources.BeginUpdate();
            Sources.Items.Clear();
            var sources = FileManager.GetSources();

            foreach (var source in sources)
            {
                Sources.Items.Add(
                    new ListViewItem(new string[] {
                    source.Directory,
                    source.Pattern,
                    source.ModifiedOnly,
                    source.LastBackupText
                }));
            }
            Sources.EndUpdate();

            var settings = SettingsManager.GetSettings();

            //this.CreateOnStart.Checked = settings.CreateBackupOnStart;
            this.IsBackupOnLogoff.Checked = settings.IsBackupOnLogoff;
            //this.LaunchOnLogon.Checked = settings.IsLaunchOnLogon;
        }