コード例 #1
0
        public MainClass()
        {
            InitializeComponent();
            Сlassification classif = new Сlassification();

            InitTable(InfoTable, classif.Task);
            InitTable(metroGrid1, classif.Method);
            InitTable(metroGrid2, classif.Parallel);
            InitTable(metroGrid3, classif.Solver);
            InitTable(metroGrid4, classif.Other);

            TaskParams TaskClassif = new TaskParams();

            InitTaskTable(metroGrid8, TaskClassif.problem_With_Constraints);
            InitTaskTable(metroGrid5, TaskClassif.MCO_solver);
            InitTaskTable(metroGrid6, TaskClassif.deceptive_problem);
            InitTaskTable(metroGrid7, TaskClassif.ansys_problem);

            UpdateExpJournal();

            TextBoxChosenProgram.Text    = gChosenProgram;
            TextBoxChosenDirXML.Text     = gChosenDirXML;
            metroButton3.Enabled         = false;
            metroComboBox1.SelectedIndex = 0;
            if (TextBoxPath.Text == "")
            {
                WriteConf.Enabled = false;
                AddLink.Enabled   = false;
            }
            if (metroTextBox5.Text == "")
            {
                metroButton8.Enabled = false;
                metroButton9.Enabled = false;
            }
        }
コード例 #2
0
        public Parameters(delegateRequestParams _dataParams)
        {
            InitializeComponent();
            this.dataParams       = _dataParams;
            _openedFromParameters = true;
            Сlassification classification = new Сlassification();

            InitTable(SolverTable, classification.Solver);
            InitTable(MethodTable, classification.Method);
            InitTable(ParallelTable, classification.Parallel);
            InitTable(TaskTable, classification.Task);
            InitTable(OtherTable, classification.Other);
        }