private void listMain_DoubleClick(object sender, EventArgs e) { if (listMain.SelectedIndex < 0) { return; } string sName = (rgType.SelectedIndex == 0) ? "grid" : "memo"; string sFullName = pubDefines.allPathDefine.mainSavePath + "\\" + sName + "_" + listMain.SelectedItem.ToString() + ".txt"; OpenFolderHelper.ExplorerFile(sFullName); }
private void toolStripOpenPath_Click(object sender, EventArgs e) { string sName = (rgType.SelectedIndex == 0) ? "grid" : "memo"; string sFullName = pubDefines.allPathDefine.mainSavePath + "\\" + sName + "_" + listMain.SelectedItem.ToString() + ".txt"; //if (File.Exists(sFullName)) //{ // Process.Start("explorer", "/select,\"" + sFullName + "\""); //} OpenFolderHelper.ExplorerFile(sFullName); }