mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
32 lines
853 B
C#
32 lines
853 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Cosmos.Debug.GDB {
|
|
public class Settings {
|
|
static protected string mFilename;
|
|
static public string Filename {
|
|
get { return mFilename; }
|
|
set { mFilename = value; }
|
|
}
|
|
|
|
static public SettingsDS DS = new SettingsDS();
|
|
|
|
static public void Save() {
|
|
Windows.SavePositions();
|
|
DS.WriteXml(Filename, System.Data.XmlWriteMode.IgnoreSchema);
|
|
}
|
|
|
|
static public void Load() {
|
|
if (File.Exists(Filename)) {
|
|
DS.ReadXml(Filename, System.Data.XmlReadMode.IgnoreSchema);
|
|
|
|
Windows.mBreakpointsForm.LoadSession();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|