/// <summary> /// See base docs. /// </summary> protected override void CreateBindings() { base.CreateBindings(); AddControlBinder(new MasterListToListBinder <Configuration, ReceiverLocation>(SettingsView.Configuration, listReceiverLocations, r => r.ReceiverLocations) { FetchColumns = (receiverLocation, e) => { e.ColumnTexts.Add(receiverLocation.Name); e.ColumnTexts.Add(receiverLocation.Latitude.ToString("N6")); e.ColumnTexts.Add(receiverLocation.Longitude.ToString("N6")); }, GetSortValue = (receiverLocation, header, defaultValue) => { IComparable result = defaultValue; if (header == columnHeaderLatitude) { result = receiverLocation.Latitude; } else if (header == columnHeaderLongitude) { result = receiverLocation.Longitude; } return(result); }, AddHandler = () => SettingsView.CreateReceiverLocation(), AutoDeleteEnabled = true, EditHandler = (receiverLocation) => SettingsView.DisplayPageForPageObject(receiverLocation), }); }