Пример #1
0
 public CompetitionViewModel(Competition comp)
 {
     this.AllowMultipleTeams = comp.GetBooleanValue(CompetitionParamId.AllowMultipleTeams);
     this.AppCorrEndDate     = comp.GetDatetimeValue(CompetitionParamId.CorrectionsEndDate, comp.StartDate);
     this.ApplicationEndDate = comp.GetDatetimeValue(CompetitionParamId.ApplicationsEndDate, comp.StartDate);
     this.EndDate            = comp.GetDatetimeValue(CompetitionParamId.EndDate, comp.StartDate);
     this.FullName           = comp.Name;
     this.Iid       = comp.Iid;
     this.ShortName = comp.ShortName;
     this.StartDate = comp.StartDate;
     this.Styles    = comp.GetStyles();
     this.Password  = comp.GetStringParameterValue(CompetitionParamId.UpdatePassword, string.Empty);
 }