public ParentStats() { InitializeComponent(); _parentStatValues = new List <ParentStatValues>(); for (int s = 0; s < values.Values.STATS_COUNT; s++) { ParentStatValues psv = new ParentStatValues(); psv.StatName = Utils.StatName(s, true) + (Utils.Precision(s) == 1 ? "" : " %"); _parentStatValues.Add(psv); flowLayoutPanel1.SetFlowBreak(psv, true); } for (int s = 0; s < values.Values.STATS_COUNT; s++) { flowLayoutPanel1.Controls.Add(_parentStatValues[values.Values.statsDisplayOrder[s]]); } _lbLevel = new Label { Location = new Point(6, 215), AutoSize = true }; groupBox1.Controls.Add(_lbLevel); Clear(); }
public ParentStats() { InitializeComponent(); parentStatValues = new List <ParentStatValues>(); for (int s = 0; s < 7; s++) { ParentStatValues psv = new ParentStatValues(); psv.Location = new Point(6, 63 + s * 21); groupBox1.Controls.Add(psv); psv.StatName = Utils.statName(s, true) + (Utils.precision(s) == 1 ? "" : " %"); parentStatValues.Add(psv); } Clear(); }
public ParentStats() { InitializeComponent(); parentStatValues = new List <ParentStatValues>(); for (int s = 0; s < 7; s++) { ParentStatValues psv = new ParentStatValues { Location = new Point(6, 63 + s * 21) }; groupBox1.Controls.Add(psv); psv.StatName = Utils.statName(s, true) + (Utils.precision(s) == 1 ? "" : " %"); parentStatValues.Add(psv); } lbLevel = new Label { Location = new Point(6, 215), AutoSize = true }; groupBox1.Controls.Add(lbLevel); Clear(); }