Exemplo n.º 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)));
 }
Exemplo n.º 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);
 }