private CSettings()
		{
			string dir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

			dir += "\\Allberg\\WinShooter";
			if (!Directory.Exists(dir))
				Directory.CreateDirectory(dir);

			fileName = dir + "\\LocalCache.xml";
			
			ds = new DSSettings();
			if (File.Exists(fileName))
			{
				ds.ReadXml(fileName);
			}
			readSettings();
			printerSettings = new CPrinterSettings(this);
		}
Example #2
0
        private CSettings()
        {
            string dir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

            dir += "\\Allberg\\WinShooter";
            if (!Directory.Exists(dir))
            {
                Directory.CreateDirectory(dir);
            }

            fileName = dir + "\\LocalCache.xml";

            ds = new DSSettings();
            if (File.Exists(fileName))
            {
                ds.ReadXml(fileName);
            }
            readSettings();
            printerSettings = new CPrinterSettings(this);
        }