/// <summary>
/// 获取文件路径
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public static string GetPaths(string str)
{
//获取工作路径
string path = System.Windows.Forms.Application.StartupPath + @"../../../";
//指定路径
Directory.SetCurrentDirectory(path);
string strgrid = Directory.GetCurrentDirectory() + @"/a.xml";
string strfile = Directory.GetCurrentDirectory() + @"/b.xml";
if (str == "a")
{
return strgrid;
}
return strfile;
}