예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public UserSettings()
 {
     DSVImportSettings = new DSVImportSettings();
     BackupFolder      = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
 }
예제 #4
0
 public void Reset()
 {
     LogWindowHidden = false;
     DSVImportSettings.Reset();
     m_windPlacements.Clear();
 }