mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
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 protected bool mAutoConnect = false;
|
|
static public bool AutoConnect {
|
|
get { return mAutoConnect; }
|
|
set { mAutoConnect = 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.RestorePositions();
|
|
Windows.mBreakpointsForm.LoadSession();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|