protected override string GetCurrentValue() { if (Column == "AdImageChanged" || Column == "AdImageUpdated") { return("False"); // always unchanged from db } return(ToDisplay(ElectionsPoliticians.GetColumn(ElectionsPoliticians.GetColumn(Column), ThisControl.SafeGetElectionKey(), ThisControl.SafeGetOfficeKey(), ThisControl.AdSetupCandidate.Value))); }
protected override bool Update(object newValue) { if (Column != "AdImageChanged" && Column != "AdImageUpdated") { ElectionsPoliticians.UpdateColumn(ElectionsPoliticians.GetColumn(Column), newValue, ThisControl.SafeGetElectionKey(), ThisControl.SafeGetOfficeKey(), ThisControl.AdSetupCandidate.Value); } return(true); }