Пример #1
0
 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);
     }
 }
Пример #2
0
        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;
        }
Пример #3
0
 private void showEntrySettings(SyncEntry entry, bool refresh = true )
 {
     frmSyncEntry entryForm = new frmSyncEntry(entry);
     entryForm.ShowDialog();
     if (refresh) {
         this.RefreshSyncList();
     }
 }
Пример #4
0
 public frmSyncEntry(SyncEntry entry)
 {
     InitializeComponent();
     syncEntry = entry;
 }