private void InitializeFileList() { fileList.LoadData(); FileList.Items.Clear(); for (int i = 0; i < fileList.Data.Count; i++) { FileList.Items.Add(fileList.Data[i]); } FileList.SelectionMode = SelectionMode.Single; }
public SelectFileWindow() { InitializeComponent(); FileExplorer.Items.Clear(); LoadFile = new LoadListFiles(); LoadFile.LoadData(); foreach (string item in LoadFile.Data) { FileExplorer.Items.Add(item); } FileExplorer.SelectionMode = SelectionMode.Single; }