public SettingsForm(IPanelStyle panelStyle, IButtonStyle buttonStyle) { InitializeComponent(); panelStyle.GetStyle(flowLayoutPanel1); panelStyle.GetStyle(panel1); CountOfQuestionsNumeric.Value = Properties.Settings.Default.CountOfQuestions; }
public ScoreFrm(IPanelStyle panelStyle, IButtonStyle buttonStyle, IUser user) { InitializeComponent(); panelStyle.GetStyle(MainPanel); panelStyle.GetStyle(flowLayoutPanel1); buttonStyle.GetStyle(CloseBtn); User = user; }
public UserFrm(IPanelStyle panelStyle, IButtonStyle buttonStyle, IUser user, QuestionFrm questionFrm, ScoreFrm scoreFrm) { InitializeComponent(); panelStyle.GetStyle(MainPanel); panelStyle.GetStyle(flowLayoutPanel1); buttonStyle.GetStyle(StartBtn); QuestionFrm = questionFrm; ScoreFrm = scoreFrm; User = user; ScoreFrm.MdiParent = this.MdiParent; QuestionFrm.FormClosing += QuestionFrm_FormClosing; }