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
Products
TV-Server
Developing Plugin -> \\ class Setup : SectionSettings
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="Systemshark" data-source="post: 1024671" data-attributes="member: 120238"><p>Hello,</p><p> </p><p>I'm trying to build a TVserver Plugin, but I'm lost on the Setup : SectionSetting Interface/Implementation.</p><p> </p><p>The example on the WIKI doesn't cover the SetupUI section of the plugin, I've build something which TV Server detects and loads but as I've not got setting section right it move it to unsupported.</p><p> </p><p>Within my Setup Class, I've got this code. can someone point me the right direction.</p><p> </p><p>using System;</p><p>using System.Collections.Generic;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.ComponentModel;</p><p>using System.Drawing;</p><p>using System.IO;</p><p>using System.Runtime.CompilerServices;</p><p>using System.Threading;</p><p>using System.Windows.Forms;</p><p>using SetupTv;</p><p>using TvControl;</p><p>using TvDatabase;</p><p>using TvLibrary.Log;</p><p></p><p>namespace BlankPlugin</p><p>{</p><p> class Setup : SectionSettings</p><p> {</p><p> [AccessedThroughProperty("Button1")]</p><p> private Button _Button1;</p><p> [AccessedThroughProperty("Label1")]</p><p> private Label _Label1;</p><p></p><p> private BlankPlugin.Settings Settings = new BlankPlugin.Settings();</p><p></p><p> public Setup()</p><p> {</p><p> this.Status_Set_Button = new Set_Button_Status(this.SetButton);</p><p> this.InitializeComponent();</p><p> this.Load_Settings();</p><p> }</p><p></p><p> private void InitializeComponent()</p><p> {</p><p> ComponentResourceManager manager = new ComponentResourceManager(typeof(Setup));</p><p> this.button1 = new System.Windows.Forms.Button();</p><p> this.label1 = new System.Windows.Forms.Label();</p><p> this.SuspendLayout();</p><p> // </p><p> // button1</p><p> // </p><p> this.button1.Location = new System.Drawing.Point(41, 156);</p><p> this.button1.Name = "button1";</p><p> this.button1.Size = new System.Drawing.Size(228, 59);</p><p> this.button1.TabIndex = 0;</p><p> this.button1.Text = "button1";</p><p> this.button1.UseVisualStyleBackColor = true;</p><p> this.button1.Click += new System.EventHandler(this.button1_Click);</p><p> // </p><p> // label1</p><p> // </p><p> this.label1.AutoSize = true;</p><p> this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));</p><p> this.label1.Location = new System.Drawing.Point(25, 28);</p><p> this.label1.Name = "label1";</p><p> this.label1.Size = new System.Drawing.Size(271, 55);</p><p> this.label1.TabIndex = 1;</p><p> this.label1.Text = "Hello World";</p><p> // </p><p> // UserControl1</p><p> // </p><p> this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);</p><p> this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;</p><p> this.Controls.Add(this.label1);</p><p> this.Controls.Add(this.button1);</p><p> this.Name = "UserControl1";</p><p> this.Size = new System.Drawing.Size(322, 396);</p><p> this.ResumeLayout(false);</p><p> this.PerformLayout();</p><p> }</p><p></p><p> }</p><p>}</p><p>Thanks Systemshark.</p></blockquote><p></p>
[QUOTE="Systemshark, post: 1024671, member: 120238"] Hello, I'm trying to build a TVserver Plugin, but I'm lost on the Setup : SectionSetting Interface/Implementation. The example on the WIKI doesn't cover the SetupUI section of the plugin, I've build something which TV Server detects and loads but as I've not got setting section right it move it to unsupported. Within my Setup Class, I've got this code. can someone point me the right direction. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.Drawing; using System.IO; using System.Runtime.CompilerServices; using System.Threading; using System.Windows.Forms; using SetupTv; using TvControl; using TvDatabase; using TvLibrary.Log; namespace BlankPlugin { class Setup : SectionSettings { [AccessedThroughProperty("Button1")] private Button _Button1; [AccessedThroughProperty("Label1")] private Label _Label1; private BlankPlugin.Settings Settings = new BlankPlugin.Settings(); public Setup() { this.Status_Set_Button = new Set_Button_Status(this.SetButton); this.InitializeComponent(); this.Load_Settings(); } private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(Setup)); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(41, 156); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(228, 59); this.button1.TabIndex = 0; this.button1.Text = "button1"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(25, 28); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(271, 55); this.label1.TabIndex = 1; this.label1.Text = "Hello World"; // // UserControl1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.label1); this.Controls.Add(this.button1); this.Name = "UserControl1"; this.Size = new System.Drawing.Size(322, 396); this.ResumeLayout(false); this.PerformLayout(); } } } Thanks Systemshark. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Products
TV-Server
Developing Plugin -> \\ class Setup : SectionSettings
Contact us
RSS
Top
Bottom