private void loadSyncEntries() { SyncEntries = new List<SyncEntry>(); List<int> ids = Settings.getSyncEntryIDs(); foreach (int id in ids) { SyncEntry entry = new SyncEntry(id, Settings); SyncEntries.Add(entry); } }
public SyncEntry addSyncEntry() { List<int> ids = Settings.getSyncEntryIDs(); int newID; if (ids.Count > 0) { newID = ids.Max() + 1; } else { newID = 1; } SyncEntry entry = new SyncEntry(newID, Settings); SyncEntries.Add(entry); return entry; }
private void showEntrySettings(SyncEntry entry, bool refresh = true ) { frmSyncEntry entryForm = new frmSyncEntry(entry); entryForm.ShowDialog(); if (refresh) { this.RefreshSyncList(); } }
public frmSyncEntry(SyncEntry entry) { InitializeComponent(); syncEntry = entry; }