Пример #1
0
 void IDataService.Save(DataItem item)
 {
     Properties.Settings.Default.LastCount = item.LastCount;
     Properties.Settings.Default.LastCountList = item.LastCountList;
     Properties.Settings.Default.LastPattern = item.LastPattern;
     Properties.Settings.Default.LastQa = item.LastQa;
     Properties.Settings.Default.Save();
 }
Пример #2
0
        void IDataService.GetData(Action<DataItem, Exception> callback)
        {
            // Use this to create design time data

            var item = new DataItem();
            item.LastPattern = "Patrice";
            item.LastCount = 12;
            item.LastQa = true;
            item.LastCountList = "5 10 15 20";
            callback(item, null);
        }
Пример #3
0
        void IDataService.GetData(Action<DataItem, Exception> callback)
        {
            // Use this to connect to the actual data service

            var item = new DataItem();

            item.LastPattern = Properties.Settings.Default.LastPattern;
            item.LastCount = Properties.Settings.Default.LastCount;
            item.LastQa = Properties.Settings.Default.LastQa;
            item.LastCountList = Properties.Settings.Default.LastCountList;

            callback(item, null);
        }
Пример #4
0
        private void saveSettings()
        {
            var item = new DataItem()
            {
                LastCount = this.NumberOfCharacters
                , LastPattern = this.Pattern
                , LastQa = this.QAApproved
                , LastCountList = this.CountList
            };

            _dataService.Save(item);
        }
Пример #5
0
 void IDataService.Save(DataItem item)
 {
 }