Developing Plugin -> \\ class Setup : SectionSettings (1 Viewer)

Systemshark

New Member
March 3, 2012
4
0
Home Country
Great Britain (UK) Great Britain (UK)
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.
 

Users who are viewing this thread

Top Bottom