private void itempidfosToolStripMenuItem_Click(object sender, EventArgs e) { ItemPidsNumber itPidsNum = new ItemPidsNumber(NewItemPidPath.Text); itPidsNum.SetNewPidsNumber(); itPidsNum.writeFile(); }
private void button2_Click(object sender, EventArgs e) { listBox1.Items.Clear(); ItemPidsNumber itPidsNum = new ItemPidsNumber(NewItemPidPath.Text); itPidsNum.SetNewPidsNumber(); for (int i = 0; i < itPidsNum.file.arrayListOfStrings.Length; i++) { listBox1.Items.Add(itPidsNum.file.arrayListOfStrings[i]); } }