private void WriteToList(List <Tuple <string, float> > initiatives) { NameList.Items.Clear(); InitList.Items.Clear(); foreach (Tuple <string, float> initiative in initiatives) { NameList.Items.Add(initiative.Item1); InitList.Items.Add(initiative.Item2); } NameBox.ResetText(); InitBox.ResetText(); }
private void InitiativeForm_Shown(object sender, EventArgs e) { int length = 1; if (InitBox.Value >= 10) { length = 2; } if (InitBox.Value >= 100) { length = 3; } InitBox.Select(0, length); }