public void button_openPath() { OpenPath op = new OpenPath(); string path = op.open(); if (path != "") { label_openPath.Content = path; } }
public void button_openPath() { popup.displayBlock("Loading file ..."); OpenPath op = new OpenPath(); string path = op.open(); if (path != "") { label_pathOpen.Content = path; files = new LoadFiles(); files.load(label_pathOpen.Content.ToString()); editFiles = new EditFiles(); editFiles.main = files.main; editFiles.startEdit(); files.copy(); list_name_main.ItemsSource = files.mainCopy; list_name_main.Items.Refresh(); //подготовим комбобоксы взяв инфу из настроек List <string> cbeVersionList = new List <string>() { "01", "02", "03", "04", "05", "06", "07", "09", "10" }; ComboBoxElements cbeVersion = new ComboBoxElements() { bindComboSearch = cbeVersionList }; comboBox_name_version.DataContext = cbeVersion; List <string> cbeCategoryList = new List <string>(); cbeCategoryList.Add(""); foreach (DataSettings ds in settings.editSettings.setElementsListView.data) { cbeCategoryList.Add(ds.name); } ComboBoxElements cbeCategory = new ComboBoxElements() { bindComboSearch = cbeCategoryList }; comboBox_name_category.DataContext = cbeCategory; //комбо для поиска List <string> cbeSList = new List <string>() { "Artist", "Title", "Album", "Genre", "Album Artist", "Year" }; ComboBoxElements cbeS = new ComboBoxElements() { bindComboSearch = cbeSList }; comboBox_name_search.DataContext = cbeS; } popup.displayNan(); }