private void bStart_Click(object sender, EventArgs e) { lConclusion.Text = ""; lvResult.Clear(); //leellenorizni a parametereket double max = Convert.ToDouble(tbSmax.Text); player_nr = Convert.ToInt32(cbNRPlayers.SelectedItem); String equil = cbEquil.SelectedItem.ToString(); List <string> parameters = new List <string>(); if (cbGame.SelectedItem.Equals("Cournot")) { lvResult.View = View.Details; lvResult.Columns.Add("Nr", lvResult.Width / 8, HorizontalAlignment.Left); lvResult.Columns.Add("Payoff", -2, HorizontalAlignment.Center); parameters.Add(tbParA.Text); parameters.Add(tbParC.Text); PAES p = new PAES(this, game, max, equil, player_nr, tbPM.Text, parameters); } else if (cbGame.SelectedItem.Equals("Public good")) { lvResult.View = View.Details; lvResult.Columns.Add("Nr", lvResult.Width / 8, HorizontalAlignment.Left); lvResult.Columns.Add("Payoff", -2, HorizontalAlignment.Center); parameters.Add(tbParA.Text); //investment parameters.Add(tbParC.Text); //mult.factor double value = Convert.ToDouble(tbParA.Text); //investment PAES p = new PAES(this, game, value, equil, player_nr, tbPM.Text, parameters); } }
private void bStart_Click(object sender, EventArgs e) { lConclusion.Text = ""; lvResult.Clear(); //leellenorizni a parametereket double max = Convert.ToDouble(tbSmax.Text); player_nr = Convert.ToInt32(cbNRPlayers.SelectedItem); String equil = cbEquil.SelectedItem.ToString(); List<string> parameters = new List<string>(); if (cbGame.SelectedItem.Equals("Cournot")) { lvResult.View = View.Details; lvResult.Columns.Add("Nr", lvResult.Width / 8, HorizontalAlignment.Left); lvResult.Columns.Add("Payoff", -2, HorizontalAlignment.Center); parameters.Add(tbParA.Text); parameters.Add(tbParC.Text); PAES p = new PAES(this, game, max, equil, player_nr, tbPM.Text, parameters); } else if (cbGame.SelectedItem.Equals("Public good")) { lvResult.View = View.Details; lvResult.Columns.Add("Nr", lvResult.Width / 8, HorizontalAlignment.Left); lvResult.Columns.Add("Payoff", -2, HorizontalAlignment.Center); parameters.Add(tbParA.Text); //investment parameters.Add(tbParC.Text); //mult.factor double value = Convert.ToDouble(tbParA.Text); //investment PAES p = new PAES(this, game, value, equil, player_nr, tbPM.Text, parameters); } }