Beispiel #1
0
 public SimilarPageExam(ExamButton leftButton, ExamButton rightButton, ExamPage nextPage = null, string title = "")
 {
     LeftButton           = leftButton;
     RightButton          = rightButton;
     leftButton.NextPage  = nextPage;
     rightButton.NextPage = nextPage;
     Title = title;
 }
Beispiel #2
0
 public SimilarPageExam(ExamPage currPage, ExamPage nextPage = null)
 {
     LeftButton  = currPage.LeftButton;
     RightButton = currPage.RightButton;
     Type        = currPage.Type;
     NextPage    = nextPage;
     Title       = currPage.Title;
 }
Beispiel #3
0
        ExamPage ICloneable <ExamPage> .Clone()
        {
            ICloneable <ExamButton> cloneable;
            var page = new ExamPage
            {
                Title       = Title,
                Description = Description,
                Type        = Type
            };

            foreach (var button in Buttons)
            {
                cloneable = button;
                page.AddButton(cloneable.Clone());
            }
            return(page);
        }
Beispiel #4
0
 public SimilarPageExam(string title     = "", string leftTitle = "", string rightTitle = "", double leftCoef = 1,
                        double rightCoef = 1, ExamPage nextPage = null, INumberGenerator generator = null)
 {
     Title = title;
     Buttons.Add(new ExamButton(generator: generator)
     {
         Title                = leftTitle,
         NextPage             = nextPage,
         ExclusionCoefficient = leftCoef
     });
     Buttons.Add(new ExamButton(generator: generator)
     {
         Title                = rightTitle,
         NextPage             = nextPage,
         ExclusionCoefficient = rightCoef
     });
 }