Anonymous | Login | Signup for a new account | 2024-11-23 11:39 PST |
Main | My View | View Issues | Change Log | Roadmap | Repositories | My Account |
View Revisions: Issue #161 | [ Back to Issue ] | ||
Summary | 0000161: Make a custom configuration framework | ||
Revision | 2011-12-13 21:31 by ycastonguay | ||
Description | - Use LINQ-to-XML (XDocument, XElement, XAttribute, etc.) The structure of the CONFIG.XML file will be: <?xml version="1.0" encoding="utf-8" ?> <configuration> <general> <key type="System.Boolean" name="FirstRun" value="true" /> <key type="System.Boolean" name="ShowTray" value="true" /> <key type="System.Int32" name="Splitter1Distance" value="235" /> <key type="System.Int32" name="Splitter2Distance" value="235" /> <key type="System.String" name="CurrentTheme" value="Default" /> </general> <audio> <driver type="DirectSound" /> <device name="M-Audio" driver="DriverInfo" id="1" /> <mixer frequency="96000" bufferSize="100" updatePeriod="10" volume="100" /> <eq enabled="true" preset="Rock" /> </audio> <controls> <songGridView> <columns> <column fieldName="Test" order="0" width="0" visible="true" /> </columns> <query type="all" audioFileId="" playlistId="" artistName="" albumTitle="" /> </songGridView> <playlistGridView> <columns> <column fieldName="Test" order="0" width="0" visible="true" /> </columns> </playlistGridView> </controls> <windows> <window name="Main" useDefaultPosition="false" x="0" y="0" width="0" height="0" maximized="true" /> <window name="Playlist" useDefaultPosition="false" x="0" y="0" width="0" height="0" maximized="true" visible="true" /> </windows> </configuration> etc. |
||
Revision | 2011-12-13 21:30 by ycastonguay | ||
Description | Based on the .NET XML files. I hate the way MPFMConfig is made. There must be a simple way and not have to reproduce code for each setting. Think about adding definite nodes in the configuration file. Check if that can be done dynamically. <MPfm.Player> <stuff> <MPfm> etc. |
Copyright © 2000 - 2011 MantisBT Group |