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(); }
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); }
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); }
private void saveSettings() { var item = new DataItem() { LastCount = this.NumberOfCharacters , LastPattern = this.Pattern , LastQa = this.QAApproved , LastCountList = this.CountList }; _dataService.Save(item); }
void IDataService.Save(DataItem item) { }