private void cbList_SelectedIndexChanged(object sender, EventArgs e) { lck = false; current = Data[cbList.SelectedIndex]; txtChar.Text = current.Char_ID.ToString(); txtCostume.Text = current.Costume_ID.ToString(); txt1.Text = current.Paths[0]; txt2.Text = current.Paths[1]; txt3.Text = current.Paths[2]; txt4.Text = current.Paths[3]; lck = true; }
private void addToolStripMenuItem_Click(object sender, EventArgs e) { CSO_Data c = new CSO_Data(); c.Paths = new string[4]; c.Paths[0] = ""; c.Paths[1] = ""; c.Paths[2] = ""; c.Paths[3] = ""; Data.Add(c); cbList.SelectedIndex = 0; cbList.Items.Clear(); for (int i = 0; i < Data.Count; i++) { cbList.Items.Add("Character " + Data[i].Char_ID.ToString("000") + " - Costume " + Data[i].Costume_ID.ToString("00")); } }