public static ResultDataQs getInstance() { if (dataQs == null) { dataQs = new ResultDataQs(); } return(dataQs); }
private void DisplayResultStartForm_Load(object sender, EventArgs e) { ResultDataQs dataQs = ResultDataQs.getInstance(); dataQs.setPanelRoot(pnContent); //dataQs.InitQuestion(); //dataQs.addPanelParentOption(); //dataQs.addPanelQs(); }
private void StartForm_Load(object sender, EventArgs e) { resultQs = new ResultQs(this); this.KeyPreview = true; ApplyEclipse(); this.Eclipse.ApplyElipse(this, 40); QA.getInstance().setPanel(panelRootOption, zoomImg1); ResultDataQs.getInstance().setZoomImg(zoomImg1); SetResultData(); pnRoot.Controls.SetChildIndex(zoomImg1, 0); time = QA.getInstance().getTime(); if (time != 0) { timer1_Tick(null, null); timer1.Start(); } Init(); }