Inheritance: System.Windows.Forms.Form
Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
        public SwarmForm(MainForm main)
        {
            InitializeComponent();

            Main = main;

            ResetView();
        }
Ejemplo n.º 3
0
        public WindowForm(MainForm main)
        {
            InitializeComponent();

            Main = main;
        }
Ejemplo n.º 4
0
        public ProblemForm(MainForm main)
        {
            InitializeComponent();

            Main = main;
        }