Exemplo n.º 1
0
    // get user file
    public DataSet GetPersonalStats()
    {
        DataSet xmlDataSet = new DataSet();

        try
        {
            xmlDataSet.ReadXml(dataPath + "personalReports.xml");
        }// end try
        catch (System.IO.FileNotFoundException error)
        {
            dsProgramaholics userListing = myDataLayer.GetPersonalStats();
            userListing.tblProgramaholics.WriteXml(dataPath + "personalReports.xml");
            xmlDataSet.ReadXml(dataPath + "personalReports.xml");
        }//end catch

        return(xmlDataSet);
    } // end get stats