private void Init()
        {
            var allSettings = dbManager.GetAllSettings();

            settings.AddRange(allSettings);
            RaisePropertyChanged("Settings");

            if (settings.Count > 0)
            {
                selectedSetting = settings.FirstOrDefault();
                RaisePropertyChanged("SelectedSetting");
            }
        }
Beispiel #2
0
        private void Init()
        {
            if (ShowBusy != null)
            {
                ShowBusy("Loading data...");
            }
            var records = dbManager.GetAllSettings();

            foreach (var item in records)
            {
                item.RecordDeleted += Item_RecordDeleted;
                item.RecordEdited  += Item_RecordEdited;
                settings.Add(item);
            }
            RaisePropertyChanged("Settings");

            if (StopBusy != null)
            {
                StopBusy();
            }
        }