private void preview_FileComment(List <String> listPath) { FormCode codeForm = new FormCode(App_Config); codeForm.fileList = listPath; codeForm.ShowDialog(); }
private void listView_Filelist_DoubleClick(object sender, EventArgs e) { if (this.listView_Filelist.SelectedItems.Count == 0) { return; } var sitem = listView_Filelist.SelectedItems[0]; if (sitem.ImageIndex == (int)SFileType.Folder_item) { try { string sfilePath = ""; if (sitem.Text == ".") { return; } else if (sitem.Text == "..") { sfilePath = Path.GetDirectoryName(lastOpenFolder); } else { sfilePath = Path.Combine(lastOpenFolder, sitem.Text); } if (sfilePath != null) { comboBox_FilePath.Text = sfilePath; openSelectFolder(comboBox_FilePath.Text); } } catch (Exception ee) { MessageBox.Show(ee.ToString()); } } else { string sfilePath = Path.Combine(lastOpenFolder, sitem.Text); List <String> listPath = new List <string>(); listPath.Add(sfilePath); FormCode codeForm = new FormCode(App_Config); codeForm.fileList = listPath; codeForm.ShowDialog(); } }