ActivEarth.Competition.Contests.ContestTimeGraph.PopulateProgressGraph C# (CSharp) Метод

PopulateProgressGraph() публичный Метод

Sets the prgress towards the goal the top contributor has made.
public PopulateProgressGraph ( ContestTeam firstPlace, float goal, string format ) : void
firstPlace ActivEarth.Objects.Competition.Contests.ContestTeam The team in first.
goal float The goal of the contest.
format string The format string the goal value is.
Результат void
        public void PopulateProgressGraph(ContestTeam firstPlace, float goal, string format)
        {
            _ContestProgress.Value = (firstPlace != null ? (int)((firstPlace.Score / goal) * 100) : 0);
            _StartLabel.Text = 0.ToString(format);
            _EndLabel.Text = goal.ToString(format);
        }

Same methods

ContestTimeGraph::PopulateProgressGraph ( System.DateTime contestStartDate, System.DateTime contestEndDate ) : void
ContestTimeGraph