//add items private void btAdd_Click(object sender, EventArgs e) { fileBrowse f = new fileBrowse(pathData, "WAV File| *.wav"); //chkBlist.DataSource = null; pathData = f.FilePathLS; setDgListTs(pathData); chkBlist.DataSource = pathData; for (int i = 0; i < chkBlist.Items.Count; i++) { chkBlist.SetItemChecked(i, true); } }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { fileBrowse fb = new fileBrowse(Path, "DAT File| *.dat"); Path = fb.FilePathS; conData.PathPj = Path; if (Path != null) { Verify = true; if (Application.OpenForms["openProject_Form"] as openProject_Form == null) { callOpenProject(); callTsForm(); callTrForm(); callAlForm(); } } fb.FilePathS = null; //Path = null; }