public SimilarPageExam(ExamButton leftButton, ExamButton rightButton, ExamPage nextPage = null, string title = "") { LeftButton = leftButton; RightButton = rightButton; leftButton.NextPage = nextPage; rightButton.NextPage = nextPage; Title = title; }
public SimilarPageExam(ExamPage currPage, ExamPage nextPage = null) { LeftButton = currPage.LeftButton; RightButton = currPage.RightButton; Type = currPage.Type; NextPage = nextPage; Title = currPage.Title; }
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); }
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 }); }