상속: System.Windows.Forms.Form
예제 #1
0
        public InputFunction(MainForm main, int dims, bool setFunction, string function)
        {
            InitializeComponent();

            Main = main;
            Dims = dims;
            SetFunction = setFunction;

            Text = setFunction ? "Set Function" : "Set Constraint";

            MinRadio.Visible = setFunction;
            MaxRadio.Visible = setFunction;

            if (setFunction)
            {
                //"Minimize: adfadsfasdf"
                if(function.StartsWith("Minimize"))
                    MinRadio.Checked = true;
                else
                    MaxRadio.Checked = true;

                if(function.Length > 10)
                    FunctionBox.Text = function.Substring(10);
            }
            else
                FunctionBox.Text = function;
        }
예제 #2
0
파일: SwarmForm.cs 프로젝트: swax/SwarmNLP
        public SwarmForm(MainForm main)
        {
            InitializeComponent();

            Main = main;

            ResetView();
        }
예제 #3
0
파일: WindowForm.cs 프로젝트: swax/SwarmNLP
        public WindowForm(MainForm main)
        {
            InitializeComponent();

            Main = main;
        }
예제 #4
0
        public ProblemForm(MainForm main)
        {
            InitializeComponent();

            Main = main;
        }