Esempio n. 1
0
        public void Save()
        {
            string            path = Path.Combine(Core.BaseDirectory, "reportHistory.xml");
            PersistenceWriter pw   = new XmlPersistenceWriter(path, "Stats");

            pw.WriteDocument(this);

            pw.Close();
        }
Esempio n. 2
0
		public void Save()
		{
			string path = Path.Combine( Core.BaseDirectory, "Logs/reportHistory.xml" );
			PersistenceWriter pw = new XmlPersistenceWriter( path, "Stats" );

			pw.WriteDocument( this );

			pw.Close();
		}
Esempio n. 3
0
        public void Save()
        {
            lock (SaveLock)
            {
                string            path = Path.Combine(Core.BaseDirectory, "staffHistory.xml");
                PersistenceWriter pw   = new XmlPersistenceWriter(path, "Staff");

                pw.WriteDocument(this);

                pw.Close();
            }
        }