Example #1
0
 public static Program CreateProgram(TblUserAnswers ua, TblCompiledQuestions cq)
 {
     return(new Program
     {
         Source = ua.UserAnswer,
         MemoryLimit = (int)cq.MemoryLimit,
         TimeLimit = (int)cq.TimeLimit,
         Language = LanguageHelper.FxLanguagesToLanguage(cq.LanguageRef)
     });
 }
 private void SetHeader(string name, TblCompiledQuestions ua)
 {
     _headerLabel.Text = string.Format("Name:{0}; Time Limit:{1}; Memory Limit:{2}; Language:{3};",
                                       name, ua.TimeLimit, ua.MemoryLimit, LanguageHelper.FxLanguagesToLanguage(ua.LanguageRef));
 }