public void UpdateShortcuts(IEnumerable <ShortcutItem> sItems) { if (sItems == null) { sItems = new ShortcutItem[0]; } ShortcutAutoSave.SaveData(sItems.ToList()); Scheme = null; OnDataChanged(); }
private void loadData() { var temp = ShortcutAutoSave.LoadData(); if (temp == null) { temp = new ShortcutItem[0]; } Scheme = temp; }