home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Using Gentle.Config (DefaultConnectionString) and how to save and load settings?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MoPhat" data-source="post: 245250" data-attributes="member: 52536"><p>Hi iam developing a new Plugin for he TV Server witch checks the next upcomings shedules and if the start time in the EPG has changed will change the schedule time too <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> </p><p></p><p>Here in switzerland/germany channels is normal that the show is not coming on the same time everyday <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /> , in this case the recording lands in the manuall folder <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite4" alt=":mad:" title="Mad :mad:" loading="lazy" data-shortname=":mad:" /> </p><p></p><p>So the plugin works well in a testform, i'm now on the final steps.</p><p></p><p>But:</p><p></p><p>- How to i'am using the Gentle.Config to receive the SQL Connection String?</p><p>- How do i'am load/save settings from the plugin?</p><p>[CODE]</p><p></p><p>is this correct so?</p><p></p><p> public void SettingsLoad()</p><p> {</p><p> TvBusinessLayer layer = new TvBusinessLayer();</p><p> txtPreTime.Text = layer.GetSetting("Schedules_Corrector_PreTime", "-20").Value;</p><p> txtAfterTime.Text = layer.GetSetting("Schedules_Corrector_AfterTime", "20").Value;</p><p> txtIntervall.Text = layer.GetSetting("Schedules_Corrector_Intervall", "60").Value;</p><p> }</p><p></p><p> public void SettingsSave()</p><p> {</p><p> TvBusinessLayer layer = new TvBusinessLayer();</p><p> Setting setting = layer.GetSetting("Schedules_Corrector_PreTime", "-20");</p><p> setting.Value = txtPreTime.Text;</p><p> setting.Persist();</p><p></p><p> setting = layer.GetSetting("Schedules_Corrector_AfterTime", "20");</p><p> setting.Value = txtAfterTime.Text;</p><p> setting.Persist();</p><p></p><p> setting = layer.GetSetting("Schedules_Corrector_Intervall", "60");</p><p> setting.Value = txtIntervall.Text;</p><p> setting.Persist();</p><p> }[/CODE]</p><p></p><p>- how do i'am commit a schedule change to the TVServer?</p><p></p><p>thank you for the help, for me (my wife) is this plugin essantially... maybe for you too?</p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> </p><p></p><p>MoPhat</p></blockquote><p></p>
[QUOTE="MoPhat, post: 245250, member: 52536"] Hi iam developing a new Plugin for he TV Server witch checks the next upcomings shedules and if the start time in the EPG has changed will change the schedule time too :D Here in switzerland/germany channels is normal that the show is not coming on the same time everyday :( , in this case the recording lands in the manuall folder :growl: So the plugin works well in a testform, i'm now on the final steps. But: - How to i'am using the Gentle.Config to receive the SQL Connection String? - How do i'am load/save settings from the plugin? [CODE] is this correct so? public void SettingsLoad() { TvBusinessLayer layer = new TvBusinessLayer(); txtPreTime.Text = layer.GetSetting("Schedules_Corrector_PreTime", "-20").Value; txtAfterTime.Text = layer.GetSetting("Schedules_Corrector_AfterTime", "20").Value; txtIntervall.Text = layer.GetSetting("Schedules_Corrector_Intervall", "60").Value; } public void SettingsSave() { TvBusinessLayer layer = new TvBusinessLayer(); Setting setting = layer.GetSetting("Schedules_Corrector_PreTime", "-20"); setting.Value = txtPreTime.Text; setting.Persist(); setting = layer.GetSetting("Schedules_Corrector_AfterTime", "20"); setting.Value = txtAfterTime.Text; setting.Persist(); setting = layer.GetSetting("Schedules_Corrector_Intervall", "60"); setting.Value = txtIntervall.Text; setting.Persist(); }[/CODE] - how do i'am commit a schedule change to the TVServer? thank you for the help, for me (my wife) is this plugin essantially... maybe for you too? :thx: MoPhat [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Using Gentle.Config (DefaultConnectionString) and how to save and load settings?
Contact us
RSS
Top
Bottom