void SaveModifiables( Profile p )
{
p.SteamID64 = Int64.Parse( txtUserID.Text );
p.AutoUpdate = chkAutoUpdate.Checked;
p.AutoImport = chkAutoImport.Checked;
p.LocalUpdate = chkLocalUpdate.Checked;
p.WebUpdate = chkWebUpdate.Checked;
p.ExportDiscard = chkExportDiscard.Checked;
p.IncludeShortcuts = chkIncludeShortcuts.Checked;
p.OverwriteOnDownload = chkOverwriteNames.Checked;
p.AutoIgnore = chkAutoIgnore.Checked;
p.IncludeUnknown = chkIncludeUnknown.Checked;
p.BypassIgnoreOnImport = chkBypassIgnoreOnImport.Checked;
SortedSet<int> ignoreSet = new SortedSet<int>();
foreach( ListViewItem item in lstIgnored.Items ) {
int id;
if( int.TryParse( item.Text, out id ) ) {
ignoreSet.Add( id );
}
}
p.IgnoreList = ignoreSet;
}