1 private static DataTable CreateDataTable(string table) { 2 DataSet dataSet = new DataSet(); 3 string dataFile = FilesHelper.FindingFileName(Application.StartupPath, "Data\Mail.xml"); 4 if(dataFile != string.Empty) { 5 FileInfo fi = new FileInfo(dataFile); 6 dataSet.ReadXml(fi.FullName); 7 return dataSet.Tables[table]; 8 } 9 return null; 10 }