示例#1
0
        public TestForm(Test T, User CurrentUser) //с указание какой тест строить
        {
            InitializeComponent();
            graph = CreateGraphics();

            p = new Postroenie();
            p.Stroim(this, T, graph); //это будет полный вызов для построения теста в форме
            this.label1.Text = this.label1.Text.Substring(0, this.label1.Text.IndexOf(": ") + 2) + p.GetTimeForTest() +
                               this.label1.Text.Substring(this.label1.Text.IndexOf(" с."), this.label1.Text.Length - this.label1.Text.IndexOf(" с."));
        }
示例#2
0
        public TestForm(Test NewTest) //для построения нового теста
        {
            InitializeComponent();
            graph     = CreateGraphics();
            p         = new Postroenie();
            this.test = NewTest;
            p.StroimNew(this, NewTest, graph); //это будет полный вызов для построения теста в форме
            this.timer1.Enabled        = false;
            this.label1.Visible        = false;
            this.buttonReturn.Visible  = this.buttonNext.Visible = true;
            this.buttonProv.Visible    = false;
            this.toolStripButton1.Text = "Введіть правильні відповіді у матрицю (з`єднайте питання у матриці із відповідями)";
            FontFamily fontFamily = new FontFamily("Microsoft Sans Serif");
            Font       font       = new Font(
                fontFamily,
                13,
                FontStyle.Bold,
                GraphicsUnit.Pixel);

            this.toolStrip1.Items[0].Font      = font;
            this.toolStrip1.Items[0].ForeColor = Color.Blue;
            this.Text = "Шаг 4";
        }