public void Deserialize(string fileName)
        {
            CSPrivateProfile prof = new CSPrivateProfile();

            prof.Read(fileName);

            Load(prof);
        }
        public void Serialize(string fileName)
        {
            CSPrivateProfile prof = new CSPrivateProfile();

            Save(prof);

            prof.Write(fileName);
        }
        public virtual void Load(CSPrivateProfile prof)
        {
            form.WindowState = (FormWindowState)
                               prof.GetEnum("Window", "State", form.WindowState);

            Rectangle rc = prof.GetRect("Window", "Bounds", normalWindowRect);

            form.Location   = rc.Location;
            form.ClientSize = rc.Size;
        }
 public virtual void Save(CSPrivateProfile prof)
 {
     prof.SetValue("Window", "Bounds", normalWindowRect);
     prof.SetValue("Window", "State", form.WindowState);
 }