コード例 #1
0
 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)));
 }
コード例 #2
0
 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);
 }