private void Design_for_Form_Scales()
        {
            BackgroundImage = Design.Background;

            Design.Design_for_button(button_create);
            Design.Design_for_button(button_back);
            Design.Design_for_button(button_next);
            Design.Design_for_button(button_left);
            Design.Design_for_button(button_right);

            Design.Design_for_label(CoScale_label);
            Design.Design_for_label(Scale_label);

            Design.Design_for_label(if_label);
            Design.Design_for_label(name_Scale_label);
            Design.Design_for_label(description_label);

            Design.Design_for_textbox(CoScale_textbox);
            Design.Design_for_textbox(if_textBox);
            Design.Design_for_textbox(name_Scale_textBox);
            Design.Design_for_textbox(description_textBox);

            Scale_label.Font         = new Font("Arial", 24F);
            CoScale_textbox.Location = new Point(CoScale_label.Location.X + 15 + CoScale_label.Width, CoScale_label.Location.Y);
            button_create.Width      = CoScale_textbox.Location.X + CoScale_textbox.Width - CoScale_label.Location.X;
            Hide_Scale();
        }
        private void Design_for_Form_Questions()
        {
            BackgroundImage = Design.Background;

            Design.Design_for_button(button_create);
            Design.Design_for_button(button_back);
            Design.Design_for_button(button_next);
            Design.Design_for_button(button_left);
            Design.Design_for_button(button_right);

            button_add_answer.BackgroundImage    = Design.Background_button_add;
            button_remove_answer.BackgroundImage = Design.Background_button_remove;

            Design.Design_for_label(CoQ_label);
            Design.Design_for_label(CA_label);
            Design.Design_for_label(Q_label);

            Design.Design_for_textbox(CoQ_textbox);


            Q_label.Font         = new Font("Arial", 24F);
            CoQ_textbox.Location = new Point(CoQ_label.Location.X + 15 + CoQ_label.Width, CoQ_label.Location.Y);
            button_create.Width  = CoQ_textbox.Location.X + CoQ_textbox.Width - CoQ_label.Location.X;
            Hide_O();
        }
Exemple #3
0
        private void Design_for_Form_Fuzzy_sets()
        {
            BackgroundImage = Design.Background;

            Design.Design_for_button(button_create);
            Design.Design_for_button(button_back);
            Design.Design_for_button(button_next);
            Design.Design_for_button(button_left);
            Design.Design_for_button(button_right);
            Design.Design_for_button(button_Show);

            Design.Design_for_label(CoFuzzy_sets_label);
            Design.Design_for_label(Fuzzy_sets_label);
            Design.Design_for_label(C_Function_label);
            Design.Design_for_label(label_left_line);
            Design.Design_for_label(label_right_line);
            Design.Design_for_label(label_Fuzzy_set_name);

            button_add_function.BackgroundImage    = Design.Background_button_add;
            button_remove_function.BackgroundImage = Design.Background_button_remove;

            Design.Design_for_textbox(CoFuzzy_sets_textBox);
            Design.Design_for_textbox(textBox_fuzzy_set_name);

            Fuzzy_sets_label.Font         = new Font("Arial", 24F);
            CoFuzzy_sets_textBox.Location = new Point(CoFuzzy_sets_label.Location.X + 15 + CoFuzzy_sets_label.Width, CoFuzzy_sets_label.Location.Y);
            button_create.Width           = CoFuzzy_sets_textBox.Location.X + CoFuzzy_sets_textBox.Width - CoFuzzy_sets_label.Location.X;
            Hide_O();
        }
Exemple #4
0
        List <Answers_to_Test> Answer_to_all_tests = new List <Answers_to_Test>(); // all answers to all questions of all tests

        public Form2(List <string> Tests, string FileName)
        {
            this.Show();
            InitializeComponent();
            this.BackgroundImage = Design.Background;
            Design.Design_for_label(LABEL_TEST_NAME);
            Design.Design_for_label(LABEL_TEST_DESCRIPTION);
            ShowTest(Tests, 0, FileName);
        }
        public Test_selection()
        {
            InitializeComponent();

            const int Width_Button = 550, Height_Button = 45;

            BackgroundImage = Design.Background;
            Design.Design_for_label(label_SName);
            Design.Design_for_label(label_Name);
            Design.Design_for_label(label_PName);
            Design.Design_for_label(label_day);
            Design.Design_for_label(label_month);
            Design.Design_for_label(label_year);

            this.SuspendLayout(); //Временно приостанавливает логику компоновки для элемента управления.
            List <string> test_names = new List <string>(Additional_functions.Get_filenames(Setting.tests_path));

            Button[] Test_add_button = new Button[test_names.Count];
            Test_add_button[0] = new Button
            {
                Text   = test_names[0],
                Width  = Width_Button,
                Height = Height_Button,
                BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch,
                Font     = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))),
                Location = new Point(50, textBox4.Location.Y + textBox4.Height + 45)
            };
            Design.Design_for_button(Test_add_button[0]);
            Test_add_button[0].Click += new EventHandler(Button_add_test_Click);
            this.Controls.Add(Test_add_button[0]);
            for (int i = 1; i < test_names.Count; i++)
            {
                Test_add_button[i] = new Button
                {
                    Width = Width_Button, Height = Height_Button, Text = test_names[i],
                    BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch,
                    Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)))
                };
                Test_add_button[i].Location = new Point(50, Test_add_button[i - 1].Location.Y + Test_add_button[i - 1].Height + 5);
                this.Controls.Add(Test_add_button[i]);
                Test_add_button[i].Click += new EventHandler(Button_add_test_Click);
                Design.Design_for_button(Test_add_button[i]);
            }
            Button StatTest = new Button {
                Width = Width_Button - 100, Height = Height_Button, Text = "Начать тестирование"
            };

            StatTest.Click += new EventHandler(StatTest_Click);
            Design.Design_for_button(StatTest);
            StatTest.Location = new Point(150, Test_add_button[Test_add_button.Length - 1].Location.Y + Test_add_button[Test_add_button.Length - 1].Height + 35);
            this.Controls.Add(StatTest);

            this.AutoScrollMargin = new System.Drawing.Size(0, 20);
            this.ResumeLayout(false);//
            this.Show();
        }
 private void Design_for_Form_header()
 {
     BackgroundImage = Design.Background;
     Design.Design_for_label(test_name_label);
     Design.Design_for_label(description_label);
     Design.Design_for_label(limitation_label);
     Design.Design_for_button(button_create);
     Design.Design_for_checkbox(NL_checkBox);
     Design.Design_for_checkbox(OO_checkBox);
     Design.Design_for_checkbox(AO_checkBox);
 }