コード例 #1
0
            protected override bool Update(object newValue)
            {
                var column             = ElectionsDefaults.GetColumn(Column);
                var defaultElectionKey = Elections.GetDefaultElectionKeyFromKey(_Page.GetElectionKey());

                ElectionsDefaults.UpdateColumn(column, newValue, defaultElectionKey);
                return(true);
            }
コード例 #2
0
            protected override string GetCurrentValue()
            {
                var column             = ElectionsDefaults.GetColumn(Column);
                var defaultElectionKey = Elections.GetDefaultElectionKeyFromKey(_Page.GetElectionKey());
                var value = ElectionsDefaults.GetColumn(column, defaultElectionKey);

                return(value == null ? string.Empty : ToDisplay(value));
            }