public void Save(BinaryWriter writer) { DSVImportSettings.Save(writer); writer.Write(LogWindowHidden); writer.Write(m_windPlacements.Count); foreach (string key in m_windPlacements.Keys) { WindowPlacement wp = m_windPlacements[key]; writer.Write(key); writer.Write(wp.Left); writer.Write(wp.Top); writer.Write(wp.Width); writer.Write(wp.Height); } }
public void Load(BinaryReader reader) { DSVImportSettings.Load(reader); LogWindowHidden = reader.ReadBoolean(); m_windPlacements.Clear(); int count = reader.ReadInt32(); for (int i = 0; i < count; ++i) { string key = reader.ReadString(); int x = reader.ReadInt32(); int y = reader.ReadInt32(); int w = reader.ReadInt32(); int h = reader.ReadInt32(); m_windPlacements[key] = new WindowPlacement(x, y, w, h); } }
public UserSettings() { DSVImportSettings = new DSVImportSettings(); BackupFolder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); }
public void Reset() { LogWindowHidden = false; DSVImportSettings.Reset(); m_windPlacements.Clear(); }