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; }
public SwarmForm(MainForm main) { InitializeComponent(); Main = main; ResetView(); }
public WindowForm(MainForm main) { InitializeComponent(); Main = main; }
public ProblemForm(MainForm main) { InitializeComponent(); Main = main; }