|
From: <fr...@us...> - 2007-06-13 16:28:01
|
Revision: 532
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=532&view=rev
Author: framug
Date: 2007-06-13 09:27:57 -0700 (Wed, 13 Jun 2007)
Log Message:
-----------
Added direct download link and modified msgbox in configuration.
Modified Paths:
--------------
trunk/plugins/MyStatus/My Status.csproj
trunk/plugins/MyStatus/SetupForm.cs
trunk/plugins/MyStatus/SetupForm.resx
Modified: trunk/plugins/MyStatus/My Status.csproj
===================================================================
--- trunk/plugins/MyStatus/My Status.csproj 2007-06-12 23:14:40 UTC (rev 531)
+++ trunk/plugins/MyStatus/My Status.csproj 2007-06-13 16:27:57 UTC (rev 532)
@@ -36,7 +36,11 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\MediaPortal\Dialogs\bin\Release\Dialogs.dll</HintPath>
</Reference>
- <Reference Include="mbm5, Version=1.0.1778.42739, Culture=neutral" />
+ <Reference Include="mbm5, Version=1.0.1778.42739, Culture=neutral">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>.\mbm5.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
Modified: trunk/plugins/MyStatus/SetupForm.cs
===================================================================
--- trunk/plugins/MyStatus/SetupForm.cs 2007-06-12 23:14:40 UTC (rev 531)
+++ trunk/plugins/MyStatus/SetupForm.cs 2007-06-13 16:27:57 UTC (rev 532)
@@ -29,6 +29,7 @@
using System.Management;
using System.ComponentModel;
using System.Windows.Forms;
+using System.Diagnostics;
using MediaPortal.GUI.Library;
using mbm5.MBMInfo;
@@ -118,6 +119,7 @@
private MediaPortal.UserInterface.Controls.MPLabel label20;
private MediaPortal.UserInterface.Controls.MPComboBox comboBox1;
private MediaPortal.UserInterface.Controls.MPGroupBox groupBox3;
+ private LinkLabel linkLabel1;
/// <summary>
/// Required designer variable.
/// </summary>
@@ -157,757 +159,903 @@
/// </summary>
private void InitializeComponent()
{
- this.label1 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label2 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label3 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label4 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label5 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label6 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label9 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label10 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label11 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label12 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.groupBox1 = new MediaPortal.UserInterface.Controls.MPGroupBox();
- this.button1 = new MediaPortal.UserInterface.Controls.MPButton();
- this.checkBox1 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox2 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox3 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.label7 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.label8 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.checkBox4 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox5 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox6 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.label13 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.checkBox7 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox8 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox9 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox10 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox11 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox12 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.label14 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.checkBox15 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.label15 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.checkBox13 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.button2 = new MediaPortal.UserInterface.Controls.MPButton();
- this.checkBox14 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox16 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox17 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.groupBox2 = new MediaPortal.UserInterface.Controls.MPGroupBox();
- this.groupBox3 = new MediaPortal.UserInterface.Controls.MPGroupBox();
- this.textBox1 = new MediaPortal.UserInterface.Controls.MPTextBox();
- this.label16 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.button3 = new MediaPortal.UserInterface.Controls.MPButton();
- this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
- this.label17 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.textBox2 = new MediaPortal.UserInterface.Controls.MPTextBox();
- this.checkBox18 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox19 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox20 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox21 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox22 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox23 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox24 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox25 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox26 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox27 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox28 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox29 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox30 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox31 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox32 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox33 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox34 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox35 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox36 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox37 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox38 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.label18 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.checkBox39 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.label19 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.checkBox40 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.checkBox41 = new MediaPortal.UserInterface.Controls.MPCheckBox();
- this.label20 = new MediaPortal.UserInterface.Controls.MPLabel();
- this.comboBox1 = new MediaPortal.UserInterface.Controls.MPComboBox();
- this.groupBox2.SuspendLayout();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label1.Location = new System.Drawing.Point(24, 16);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(96, 16);
- this.label1.TabIndex = 0;
- this.label1.Text = "MBM Version:";
- //
- // label2
- //
- this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label2.Location = new System.Drawing.Point(120, 16);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(232, 16);
- this.label2.TabIndex = 1;
- //
- // label3
- //
- this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label3.Location = new System.Drawing.Point(120, 64);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(544, 16);
- this.label3.TabIndex = 3;
- //
- // label4
- //
- this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label4.Location = new System.Drawing.Point(24, 64);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(88, 16);
- this.label4.TabIndex = 2;
- this.label4.Text = "MBM Path:";
- //
- // label5
- //
- this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label5.Location = new System.Drawing.Point(120, 40);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(232, 16);
- this.label5.TabIndex = 5;
- //
- // label6
- //
- this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label6.Location = new System.Drawing.Point(24, 40);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(104, 16);
- this.label6.TabIndex = 4;
- this.label6.Text = "MBM started at:";
- //
- // label9
- //
- this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label9.Location = new System.Drawing.Point(480, 40);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(184, 16);
- this.label9.TabIndex = 9;
- //
- // label10
- //
- this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label10.Location = new System.Drawing.Point(368, 40);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(80, 16);
- this.label10.TabIndex = 8;
- this.label10.Text = "SMB chip:";
- //
- // label11
- //
- this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label11.Location = new System.Drawing.Point(480, 16);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(184, 16);
- this.label11.TabIndex = 7;
- //
- // label12
- //
- this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
- this.label12.Location = new System.Drawing.Point(368, 16);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(104, 16);
- this.label12.TabIndex = 6;
- this.label12.Text = "MBM last update:";
- //
- // groupBox1
- //
- this.groupBox1.Location = new System.Drawing.Point(304, 280);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(376, 8);
- this.groupBox1.TabIndex = 10;
- this.groupBox1.TabStop = false;
- //
- // button1
- //
- this.button1.Enabled = false;
- this.button1.Location = new System.Drawing.Point(584, 392);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(88, 24);
- this.button1.TabIndex = 11;
- this.button1.Text = "OK";
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // checkBox1
- //
- this.checkBox1.Enabled = false;
- this.checkBox1.Location = new System.Drawing.Point(32, 136);
- this.checkBox1.Name = "checkBox1";
- this.checkBox1.Size = new System.Drawing.Size(104, 16);
- this.checkBox1.TabIndex = 13;
- //
- // checkBox2
- //
- this.checkBox2.Enabled = false;
- this.checkBox2.Location = new System.Drawing.Point(32, 160);
- this.checkBox2.Name = "checkBox2";
- this.checkBox2.Size = new System.Drawing.Size(104, 16);
- this.checkBox2.TabIndex = 14;
- //
- // checkBox3
- //
- this.checkBox3.Enabled = false;
- this.checkBox3.Location = new System.Drawing.Point(32, 184);
- this.checkBox3.Name = "checkBox3";
- this.checkBox3.Size = new System.Drawing.Size(104, 16);
- this.checkBox3.TabIndex = 15;
- //
- // label7
- //
- this.label7.Location = new System.Drawing.Point(16, 112);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(72, 16);
- this.label7.TabIndex = 16;
- this.label7.Text = "Temperature";
- //
- // label8
- //
- this.label8.Location = new System.Drawing.Point(136, 112);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(48, 16);
- this.label8.TabIndex = 20;
- this.label8.Text = "Fan";
- //
- // checkBox4
- //
- this.checkBox4.Enabled = false;
- this.checkBox4.Location = new System.Drawing.Point(136, 184);
- this.checkBox4.Name = "checkBox4";
- this.checkBox4.Size = new System.Drawing.Size(104, 16);
- this.checkBox4.TabIndex = 19;
- //
- // checkBox5
- //
- this.checkBox5.Enabled = false;
- this.checkBox5.Location = new System.Drawing.Point(136, 160);
- this.checkBox5.Name = "checkBox5";
- this.checkBox5.Size = new System.Drawing.Size(104, 16);
- this.checkBox5.TabIndex = 18;
- //
- // checkBox6
- //
- this.checkBox6.Enabled = false;
- this.checkBox6.Location = new System.Drawing.Point(136, 136);
- this.checkBox6.Name = "checkBox6";
- this.checkBox6.Size = new System.Drawing.Size(104, 16);
- this.checkBox6.TabIndex = 17;
- //
- // label13
- //
- this.label13.Location = new System.Drawing.Point(288, 112);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(48, 16);
- this.label13.TabIndex = 24;
- this.label13.Text = "Voltage";
- //
- // checkBox7
- //
- this.checkBox7.Enabled = false;
- this.checkBox7.Location = new System.Drawing.Point(240, 184);
- this.checkBox7.Name = "checkBox7";
- this.checkBox7.Size = new System.Drawing.Size(96, 16);
- this.checkBox7.TabIndex = 23;
- //
- // checkBox8
- //
- this.checkBox8.Enabled = false;
- this.checkBox8.Location = new System.Drawing.Point(240, 160);
- this.checkBox8.Name = "checkBox8";
- this.checkBox8.Size = new System.Drawing.Size(96, 16);
- this.checkBox8.TabIndex = 22;
- //
- // checkBox9
- //
- this.checkBox9.Enabled = false;
- this.checkBox9.Location = new System.Drawing.Point(240, 136);
- this.checkBox9.Name = "checkBox9";
- this.checkBox9.Size = new System.Drawing.Size(96, 16);
- this.checkBox9.TabIndex = 21;
- //
- // checkBox10
- //
- this.checkBox10.Enabled = false;
- this.checkBox10.Location = new System.Drawing.Point(336, 184);
- this.checkBox10.Name = "checkBox10";
- this.checkBox10.Size = new System.Drawing.Size(112, 16);
- this.checkBox10.TabIndex = 27;
- //
- // checkBox11
- //
- this.checkBox11.Enabled = false;
- this.checkBox11.Location = new System.Drawing.Point(336, 160);
- this.checkBox11.Name = "checkBox11";
- this.checkBox11.Size = new System.Drawing.Size(112, 16);
- this.checkBox11.TabIndex = 26;
- //
- // checkBox12
- //
- this.checkBox12.Enabled = false;
- this.checkBox12.Location = new System.Drawing.Point(336, 136);
- this.checkBox12.Name = "checkBox12";
- this.checkBox12.Size = new System.Drawing.Size(112, 16);
- this.checkBox12.TabIndex = 25;
- //
- // label14
- //
- this.label14.Location = new System.Drawing.Point(440, 112);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(64, 16);
- this.label14.TabIndex = 31;
- this.label14.Text = "Percentage";
- //
- // checkBox15
- //
- this.checkBox15.Enabled = false;
- this.checkBox15.Location = new System.Drawing.Point(448, 136);
- this.checkBox15.Name = "checkBox15";
- this.checkBox15.Size = new System.Drawing.Size(96, 16);
- this.checkBox15.TabIndex = 28;
- //
- // label15
- //
- this.label15.Location = new System.Drawing.Point(544, 112);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(64, 16);
- this.label15.TabIndex = 33;
- this.label15.Text = "mHz";
- //
- // checkBox13
- //
- this.checkBox13.Enabled = false;
- this.checkBox13.Location = new System.Drawing.Point(552, 136);
- this.checkBox13.Name = "checkBox13";
- this.checkBox13.Size = new System.Drawing.Size(136, 16);
- this.checkBox13.TabIndex = 32;
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(480, 392);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(88, 24);
- this.button2.TabIndex = 34;
- this.button2.Text = "Load Sensors";
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // checkBox14
- //
- this.checkBox14.Enabled = false;
- this.checkBox14.Location = new System.Drawing.Point(32, 224);
- this.checkBox14.Name = "checkBox14";
- this.checkBox14.Size = new System.Drawing.Size(56, 24);
- this.checkBox14.TabIndex = 35;
- this.checkBox14.Text = "HD C:";
- //
- // checkBox16
- //
- this.checkBox16.Enabled = false;
- this.checkBox16.Location = new System.Drawing.Point(32, 248);
- this.checkBox16.Name = "checkBox16";
- this.checkBox16.Size = new System.Drawing.Size(56, 24);
- this.checkBox16.TabIndex = 36;
- this.checkBox16.Text = "HD D:";
- //
- // checkBox17
- //
- this.checkBox17.Enabled = false;
- this.checkBox17.Location = new System.Drawing.Point(32, 272);
- this.checkBox17.Name = "checkBox17";
- this.checkBox17.Size = new System.Drawing.Size(56, 24);
- this.checkBox17.TabIndex = 37;
- this.checkBox17.Text = "HD E:";
- //
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.groupBox3);
- this.groupBox2.Location = new System.Drawing.Point(24, 208);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(640, 8);
- this.groupBox2.TabIndex = 38;
- this.groupBox2.TabStop = false;
- //
- // groupBox3
- //
- this.groupBox3.Location = new System.Drawing.Point(0, 0);
- this.groupBox3.Name = "groupBox3";
- this.groupBox3.Size = new System.Drawing.Size(640, 8);
- this.groupBox3.TabIndex = 39;
- this.groupBox3.TabStop = false;
- //
- // textBox1
- //
- this.textBox1.Location = new System.Drawing.Point(456, 224);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(200, 20);
- this.textBox1.TabIndex = 39;
- this.textBox1.Text = "C:\\WINDOWS\\Media";
- //
- // label16
- //
- this.label16.Location = new System.Drawing.Point(296, 232);
- this.label16.Name = "label16";
- this.label16.Size = new System.Drawing.Size(144, 16);
- this.label16.TabIndex = 40;
- this.label16.Text = "Status Alarm Sound Folder";
- //
- // button3
- //
- this.button3.Location = new System.Drawing.Point(664, 224);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(24, 23);
- this.button3.TabIndex = 41;
- this.button3.Text = "...";
- this.button3.Click += new System.EventHandler(this.button3_Click);
- //
- // label17
- //
- this.label17.Location = new System.Drawing.Point(296, 256);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(176, 16);
- this.label17.TabIndex = 42;
- this.label17.Text = "Alarm threshold for HD (in MB)";
- //
- // textBox2
- //
- this.textBox2.Location = new System.Drawing.Point(456, 248);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(72, 20);
- this.textBox2.TabIndex = 43;
- this.textBox2.Text = "200";
- //
- // checkBox18
- //
- this.checkBox18.Enabled = false;
- this.checkBox18.Location = new System.Drawing.Point(32, 344);
- this.checkBox18.Name = "checkBox18";
- this.checkBox18.Size = new System.Drawing.Size(56, 24);
- this.checkBox18.TabIndex = 46;
- this.checkBox18.Text = "HD H:";
- //
- // checkBox19
- //
- this.checkBox19.Enabled = false;
- this.checkBox19.Location = new System.Drawing.Point(32, 320);
- this.checkBox19.Name = "checkBox19";
- this.checkBox19.Size = new System.Drawing.Size(56, 24);
- this.checkBox19.TabIndex = 45;
- this.checkBox19.Text = "HD G:";
- //
- // checkBox20
- //
- this.checkBox20.Enabled = false;
- this.checkBox20.Location = new System.Drawing.Point(32, 296);
- this.checkBox20.Name = "checkBox20";
- this.checkBox20.Size = new System.Drawing.Size(56, 24);
- this.checkBox20.TabIndex = 44;
- this.checkBox20.Text = "HD F:";
- //
- // checkBox21
- //
- this.checkBox21.Enabled = false;
- this.checkBox21.Location = new System.Drawing.Point(96, 344);
- this.checkBox21.Name = "checkBox21";
- this.checkBox21.Size = new System.Drawing.Size(64, 24);
- this.checkBox21.TabIndex = 52;
- this.checkBox21.Text = "HD N:";
- //
- // checkBox22
- //
- this.checkBox22.Enabled = false;
- this.checkBox22.Location = new System.Drawing.Point(96, 320);
- this.checkBox22.Name = "checkBox22";
- this.checkBox22.Size = new System.Drawing.Size(64, 24);
- this.checkBox22.TabIndex = 51;
- this.checkBox22.Text = "HD M:";
- //
- // checkBox23
- //
- this.checkBox23.Enabled = false;
- this.checkBox23.Location = new System.Drawing.Point(96, 296);
- this.checkBox23.Name = "checkBox23";
- this.checkBox23.Size = new System.Drawing.Size(64, 24);
- this.checkBox23.TabIndex = 50;
- this.checkBox23.Text = "HD L:";
- //
- // checkBox24
- //
- this.checkBox24.Enabled = false;
- this.checkBox24.Location = new System.Drawing.Point(96, 272);
- this.checkBox24.Name = "checkBox24";
- this.checkBox24.Size = new System.Drawing.Size(64, 24);
- this.checkBox24.TabIndex = 49;
- this.checkBox24.Text = "HD K:";
- //
- // checkBox25
- //
- this.checkBox25.Enabled = false;
- this.checkBox25.Location = new System.Drawing.Point(96, 248);
- this.checkBox25.Name = "checkBox25";
- this.checkBox25.Size = new System.Drawing.Size(64, 24);
- this.checkBox25.TabIndex = 48;
- this.checkBox25.Text = "HD J:";
- //
- // checkBox26
- //
- this.checkBox26.Enabled = false;
- this.checkBox26.Location = new System.Drawing.Point(96, 224);
- this.checkBox26.Name = "checkBox26";
- this.checkBox26.Size = new System.Drawing.Size(64, 24);
- this.checkBox26.TabIndex = 47;
- this.checkBox26.Text = "HD I:";
- //
- // checkBox27
- //
- this.checkBox27.Enabled = false;
- this.checkBox27.Location = new System.Drawing.Point(160, 344);
- this.checkBox27.Name = "checkBox27";
- this.checkBox27.Size = new System.Drawing.Size(64, 24);
- this.checkBox27.TabIndex = 58;
- this.checkBox27.Text = "HD T:";
- //
- // checkBox28
- //
- this.checkBox28.Enabled = false;
- this.checkBox28.Location = new System.Drawing.Point(160, 320);
- this.checkBox28.Name = "checkBox28";
- this.checkBox28.Size = new System.Drawing.Size(64, 24);
- this.checkBox28.TabIndex = 57;
- this.checkBox28.Text = "HD S:";
- //
- // checkBox29
- //
- this.checkBox29.Enabled = false;
- this.checkBox29.Location = new System.Drawing.Point(160, 296);
- this.checkBox29.Name = "checkBox29";
- this.checkBox29.Size = new System.Drawing.Size(64, 24);
- this.checkBox29.TabIndex = 56;
- this.checkBox29.Text = "HD R:";
- //
- // checkBox30
- //
- this.checkBox30.Enabled = false;
- this.checkBox30.Location = new System.Drawing.Point(160, 272);
- this.checkBox30.Name = "checkBox30";
- this.checkBox30.Size = new System.Drawing.Size(64, 24);
- this.checkBox30.TabIndex = 55;
- this.checkBox30.Text = "HD Q:";
- //
- // checkBox31
- //
- this.checkBox31.Enabled = false;
- this.checkBox31.Location = new System.Drawing.Point(160, 248);
- this.checkBox31.Name = "checkBox31";
- this.checkBox31.Size = new System.Drawing.Size(64, 24);
- this.checkBox31.TabIndex = 54;
- this.checkBox31.Text = "HD P:";
- //
- // checkBox32
- //
- this.checkBox32.Enabled = false;
- this.checkBox32.Location = new System.Drawing.Point(160, 224);
- this.checkBox32.Name = "checkBox32";
- this.checkBox32.Size = new System.Drawing.Size(64, 24);
- this.checkBox32.TabIndex = 53;
- this.checkBox32.Text = "HD O :";
- //
- // checkBox33
- //
- this.checkBox33.Enabled = false;
- this.checkBox33.Location = new System.Drawing.Point(224, 344);
- this.checkBox33.Name = "checkBox33";
- this.checkBox33.Size = new System.Drawing.Size(64, 24);
- this.checkBox33.TabIndex = 64;
- this.checkBox33.Text = "HD Z:";
- //
- // checkBox34
- //
- this.checkBox34.Enabled = false;
- this.checkBox34.Location = new System.Drawing.Point(224, 320);
- this.checkBox34.Name = "checkBox34";
- this.checkBox34.Size = new System.Drawing.Size(64, 24);
- this.checkBox34.TabIndex = 63;
- this.checkBox34.Text = "HD Y:";
- //
- // checkBox35
- //
- this.checkBox35.Enabled = false;
- this.checkBox35.Location = new System.Drawing.Point(224, 296);
- this.checkBox35.Name = "checkBox35";
- this.checkBox35.Size = new System.Drawing.Size(64, 24);
- this.checkBox35.TabIndex = 62;
- this.checkBox35.Text = "HD X:";
- //
- // checkBox36
- //
- this.checkBox36.Enabled = false;
- this.checkBox36.Location = new System.Drawing.Point(224, 272);
- this.checkBox36.Name = "checkBox36";
- this.checkBox36.Size = new System.Drawing.Size(64, 24);
- this.checkBox36.TabIndex = 61;
- this.checkBox36.Text = "HD W:";
- //
- // checkBox37
- //
- this.checkBox37.Enabled = false;
- this.checkBox37.Location = new System.Drawing.Point(224, 248);
- this.checkBox37.Name = "checkBox37";
- this.checkBox37.Size = new System.Drawing.Size(64, 24);
- this.checkBox37.TabIndex = 60;
- this.checkBox37.Text = "HD U:";
- //
- // checkBox38
- //
- this.checkBox38.Enabled = false;
- this.checkBox38.Location = new System.Drawing.Point(224, 224);
- this.checkBox38.Name = "checkBox38";
- this.checkBox38.Size = new System.Drawing.Size(64, 24);
- this.checkBox38.TabIndex = 59;
- this.checkBox38.Text = "HD U :";
- //
- // label18
- //
- this.label18.Location = new System.Drawing.Point(296, 304);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(152, 16);
- this.label18.TabIndex = 65;
- this.label18.Text = "Enable statusbar";
- //
- // checkBox39
- //
- this.checkBox39.Enabled = false;
- this.checkBox39.Location = new System.Drawing.Point(456, 296);
- this.checkBox39.Name = "checkBox39";
- this.checkBox39.Size = new System.Drawing.Size(48, 24);
- this.checkBox39.TabIndex = 66;
- this.checkBox39.CheckedChanged += new System.EventHandler(this.checkBox39_CheckedChanged);
- //
- // label19
- //
- this.label19.Location = new System.Drawing.Point(296, 328);
- this.label19.Name = "label19";
- this.label19.Size = new System.Drawing.Size(152, 16);
- this.label19.TabIndex = 67;
- this.label19.Text = "Statusbar positon";
- //
- // checkBox40
- //
- this.checkBox40.Enabled = false;
- this.checkBox40.Location = new System.Drawing.Point(456, 328);
- this.checkBox40.Name = "checkBox40";
- this.checkBox40.Size = new System.Drawing.Size(48, 16);
- this.checkBox40.TabIndex = 68;
- this.checkBox40.Text = "Top";
- this.checkBox40.CheckedChanged += new System.EventHandler(this.checkBox40_CheckedChanged);
- //
- // checkBox41
- //
- this.checkBox41.Enabled = false;
- this.checkBox41.Location = new System.Drawing.Point(520, 328);
- this.checkBox41.Name = "checkBox41";
- this.checkBox41.Size = new System.Drawing.Size(64, 16);
- this.checkBox41.TabIndex = 69;
- this.checkBox41.Text = "Bottom";
- this.checkBox41.CheckedChanged += new System.EventHandler(this.checkBox41_CheckedChanged);
- //
- // label20
- //
- this.label20.Location = new System.Drawing.Point(296, 352);
- this.label20.Name = "label20";
- this.label20.Size = new System.Drawing.Size(152, 16);
- this.label20.TabIndex = 70;
- this.label20.Text = "Select statusbar sensor";
- //
- // comboBox1
- //
- this.comboBox1.Enabled = false;
- this.comboBox1.Location = new System.Drawing.Point(456, 352);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(216, 21);
- this.comboBox1.TabIndex = 71;
- this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
- //
- // SetupForm
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(704, 430);
- this.Controls.Add(this.comboBox1);
- this.Controls.Add(this.label20);
- this.Controls.Add(this.checkBox41);
- this.Controls.Add(this.checkBox40);
- this.Controls.Add(this.label19);
- this.Controls.Add(this.checkBox39);
- this.Controls.Add(this.label18);
- this.Controls.Add(this.checkBox33);
- this.Controls.Add(this.checkBox34);
- this.Controls.Add(this.checkBox35);
- this.Controls.Add(this.checkBox36);
- this.Controls.Add(this.checkBox37);
- this.Controls.Add(this.checkBox38);
- this.Controls.Add(this.checkBox27);
- this.Controls.Add(this.checkBox28);
- this.Controls.Add(this.checkBox29);
- this.Controls.Add(this.checkBox30);
- this.Controls.Add(this.checkBox31);
- this.Controls.Add(this.checkBox32);
- this.Controls.Add(this.checkBox21);
- this.Controls.Add(this.checkBox22);
- this.Controls.Add(this.checkBox23);
- this.Controls.Add(this.checkBox24);
- this.Controls.Add(this.checkBox25);
- this.Controls.Add(this.checkBox26);
- this.Controls.Add(this.checkBox18);
- this.Controls.Add(this.checkBox19);
- this.Controls.Add(this.checkBox20);
- this.Controls.Add(this.textBox2);
- this.Controls.Add(this.textBox1);
- this.Controls.Add(this.label17);
- this.Controls.Add(this.button3);
- this.Controls.Add(this.label16);
- this.Controls.Add(this.groupBox2);
- this.Controls.Add(this.checkBox17);
- this.Controls.Add(this.checkBox16);
- this.Controls.Add(this.checkBox14);
- this.Controls.Add(this.button2);
- this.Controls.Add(this.label15);
- this.Controls.Add(this.checkBox13);
- this.Controls.Add(this.label14);
- this.Controls.Add(this.checkBox15);
- this.Controls.Add(this.checkBox10);
- this.Controls.Add(this.checkBox11);
- this.Controls.Add(this.checkBox12);
- this.Controls.Add(this.label13);
- this.Controls.Add(this.checkBox7);
- this.Controls.Add(this.checkBox8);
- this.Controls.Add(this.checkBox9);
- this.Controls.Add(this.label8);
- this.Controls.Add(this.checkBox4);
- this.Controls.Add(this.checkBox5);
- this.Controls.Add(this.checkBox6);
- this.Controls.Add(this.label7);
- this.Controls.Add(this.checkBox3);
- this.Controls.Add(this.checkBox2);
- this.Controls.Add(this.checkBox1);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.label9);
- this.Controls.Add(this.label10);
- this.Controls.Add(this.label11);
- this.Controls.Add(this.label12);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Name = "SetupForm";
- this.Text = "SetupForm";
- this.groupBox2.ResumeLayout(false);
- this.ResumeLayout(false);
+ this.label1 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label2 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label3 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label4 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label5 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label6 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label9 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label10 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label11 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label12 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.groupBox1 = new MediaPortal.UserInterface.Controls.MPGroupBox();
+ this.button1 = new MediaPortal.UserInterface.Controls.MPButton();
+ this.checkBox1 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox2 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox3 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.label7 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.label8 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.checkBox4 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox5 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox6 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.label13 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.checkBox7 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox8 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox9 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox10 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox11 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox12 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.label14 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.checkBox15 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.label15 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.checkBox13 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.button2 = new MediaPortal.UserInterface.Controls.MPButton();
+ this.checkBox14 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox16 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox17 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.groupBox2 = new MediaPortal.UserInterface.Controls.MPGroupBox();
+ this.groupBox3 = new MediaPortal.UserInterface.Controls.MPGroupBox();
+ this.textBox1 = new MediaPortal.UserInterface.Controls.MPTextBox();
+ this.label16 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.button3 = new MediaPortal.UserInterface.Controls.MPButton();
+ this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
+ this.label17 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.textBox2 = new MediaPortal.UserInterface.Controls.MPTextBox();
+ this.checkBox18 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox19 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox20 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox21 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox22 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox23 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox24 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox25 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox26 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox27 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox28 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox29 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox30 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox31 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox32 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox33 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox34 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox35 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox36 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox37 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox38 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.label18 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.checkBox39 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.label19 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.checkBox40 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.checkBox41 = new MediaPortal.UserInterface.Controls.MPCheckBox();
+ this.label20 = new MediaPortal.UserInterface.Controls.MPLabel();
+ this.comboBox1 = new MediaPortal.UserInterface.Controls.MPComboBox();
+ this.linkLabel1 = new System.Windows.Forms.LinkLabel();
+ this.groupBox2.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label1.Location = new System.Drawing.Point(29, 18);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(115, 19);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "MBM Version:";
+ //
+ // label2
+ //
+ this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label2.Location = new System.Drawing.Point(144, 18);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(278, 19);
+ this.label2.TabIndex = 1;
+ //
+ // label3
+ //
+ this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label3.Location = new System.Drawing.Point(144, 74);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(653, 18);
+ this.label3.TabIndex = 3;
+ //
+ // label4
+ //
+ this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label4.Location = new System.Drawing.Point(29, 74);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(105, 18);
+ this.label4.TabIndex = 2;
+ this.label4.Text = "MBM Path:";
+ //
+ // label5
+ //
+ this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label5.Location = new System.Drawing.Point(144, 46);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(278, 19);
+ this.label5.TabIndex = 5;
+ //
+ // label6
+ //
+ this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label6.Location = new System.Drawing.Point(29, 46);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(125, 19);
+ this.label6.TabIndex = 4;
+ this.label6.Text = "MBM started at:";
+ //
+ // label9
+ //
+ this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label9.Location = new System.Drawing.Point(576, 46);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(221, 19);
+ this.label9.TabIndex = 9;
+ //
+ // label10
+ //
+ this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label10.Location = new System.Drawing.Point(442, 46);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(96, 19);
+ this.label10.TabIndex = 8;
+ this.label10.Text = "SMB chip:";
+ //
+ // label11
+ //
+ this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label11.Location = new System.Drawing.Point(576, 18);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(221, 19);
+ this.label11.TabIndex = 7;
+ //
+ // label12
+ //
+ this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label12.Location = new System.Drawing.Point(442, 18);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(124, 19);
+ this.label12.TabIndex = 6;
+ this.label12.Text = "MBM last update:";
+ //
+ // groupBox1
+ //
+ this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.groupBox1.Location = new System.Drawing.Point(365, 323);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(451, 9);
+ this.groupBox1.TabIndex = 10;
+ this.groupBox1.TabStop = false;
+ //
+ // button1
+ //
+ this.button1.Enabled = false;
+ this.button1.Location = new System.Drawing.Point(701, 452);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(105, 28);
+ this.button1.TabIndex = 11;
+ this.button1.Text = "OK";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // checkBox1
+ //
+ this.checkBox1.AutoSize = true;
+ this.checkBox1.Enabled = false;
+ this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox1.Location = new System.Drawing.Point(38, 157);
+ this.checkBox1.Name = "checkBox1";
+ this.checkBox1.Size = new System.Drawing.Size(13, 12);
+ this.checkBox1.TabIndex = 13;
+ this.checkBox1.UseVisualStyleBackColor = true;
+ //
+ // checkBox2
+ //
+ this.checkBox2.AutoSize = true;
+ this.checkBox2.Enabled = false;
+ this.checkBox2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox2.Location = new System.Drawing.Point(38, 185);
+ this.checkBox2.Name = "checkBox2";
+ this.checkBox2.Size = new System.Drawing.Size(13, 12);
+ this.checkBox2.TabIndex = 14;
+ this.checkBox2.UseVisualStyleBackColor = true;
+ //
+ // checkBox3
+ //
+ this.checkBox3.AutoSize = true;
+ this.checkBox3.Enabled = false;
+ this.checkBox3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox3.Location = new System.Drawing.Point(38, 212);
+ this.checkBox3.Name = "checkBox3";
+ this.checkBox3.Size = new System.Drawing.Size(13, 12);
+ this.checkBox3.TabIndex = 15;
+ this.checkBox3.UseVisualStyleBackColor = true;
+ //
+ // label7
+ //
+ this.label7.Location = new System.Drawing.Point(19, 129);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(87, 19);
+ this.label7.TabIndex = 16;
+ this.label7.Text = "Temperature";
+ //
+ // label8
+ //
+ this.label8.Location = new System.Drawing.Point(163, 129);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(58, 19);
+ this.label8.TabIndex = 20;
+ this.label8.Text = "Fan";
+ //
+ // checkBox4
+ //
+ this.checkBox4.AutoSize = true;
+ this.checkBox4.Enabled = false;
+ this.checkBox4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox4.Location = new System.Drawing.Point(163, 212);
+ this.checkBox4.Name = "checkBox4";
+ this.checkBox4.Size = new System.Drawing.Size(13, 12);
+ this.checkBox4.TabIndex = 19;
+ this.checkBox4.UseVisualStyleBackColor = true;
+ //
+ // checkBox5
+ //
+ this.checkBox5.AutoSize = true;
+ this.checkBox5.Enabled = false;
+ this.checkBox5.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox5.Location = new System.Drawing.Point(163, 185);
+ this.checkBox5.Name = "checkBox5";
+ this.checkBox5.Size = new System.Drawing.Size(13, 12);
+ this.checkBox5.TabIndex = 18;
+ this.checkBox5.UseVisualStyleBackColor = true;
+ //
+ // checkBox6
+ //
+ this.checkBox6.AutoSize = true;
+ this.checkBox6.Enabled = false;
+ this.checkBox6.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox6.Location = new System.Drawing.Point(163, 157);
+ this.checkBox6.Name = "checkBox6";
+ this.checkBox6.Size = new System.Drawing.Size(13, 12);
+ this.checkBox6.TabIndex = 17;
+ this.checkBox6.UseVisualStyleBackColor = true;
+ //
+ // label13
+ //
+ this.label13.Location = new System.Drawing.Point(346, 129);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(57, 19);
+ this.label13.TabIndex = 24;
+ this.label13.Text = "Voltage";
+ //
+ // checkBox7
+ //
+ this.checkBox7.AutoSize = true;
+ this.checkBox7.Enabled = false;
+ this.checkBox7.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox7.Location = new System.Drawing.Point(288, 212);
+ this.checkBox7.Name = "checkBox7";
+ this.checkBox7.Size = new System.Drawing.Size(13, 12);
+ this.checkBox7.TabIndex = 23;
+ this.checkBox7.UseVisualStyleBackColor = true;
+ //
+ // checkBox8
+ //
+ this.checkBox8.AutoSize = true;
+ this.checkBox8.Enabled = false;
+ this.checkBox8.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox8.Location = new System.Drawing.Point(288, 185);
+ this.checkBox8.Name = "checkBox8";
+ this.checkBox8.Size = new System.Drawing.Size(13, 12);
+ this.checkBox8.TabIndex = 22;
+ this.checkBox8.UseVisualStyleBackColor = true;
+ //
+ // checkBox9
+ //
+ this.checkBox9.AutoSize = true;
+ this.checkBox9.Enabled = false;
+ this.checkBox9.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox9.Location = new System.Drawing.Point(288, 157);
+ this.checkBox9.Name = "checkBox9";
+ this.checkBox9.Size = new System.Drawing.Size(13, 12);
+ this.checkBox9.TabIndex = 21;
+ this.checkBox9.UseVisualStyleBackColor = true;
+ //
+ // checkBox10
+ //
+ this.checkBox10.AutoSize = true;
+ this.checkBox10.Enabled = false;
+ this.checkBox10.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox10.Location = new System.Drawing.Point(403, 212);
+ this.checkBox10.Name = "checkBox10";
+ this.checkBox10.Size = new System.Drawing.Size(13, 12);
+ this.checkBox10.TabIndex = 27;
+ this.checkBox10.UseVisualStyleBackColor = true;
+ //
+ // checkBox11
+ //
+ this.checkBox11.AutoSize = true;
+ this.checkBox11.Enabled = false;
+ this.checkBox11.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox11.Location = new System.Drawing.Point(403, 185);
+ this.checkBox11.Name = "checkBox11";
+ this.checkBox11.Size = new System.Drawing.Size(13, 12);
+ this.checkBox11.TabIndex = 26;
+ this.checkBox11.UseVisualStyleBackColor = true;
+ //
+ // checkBox12
+ //
+ this.checkBox12.AutoSize = true;
+ this.checkBox12.Enabled = false;
+ this.checkBox12.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox12.Location = new System.Drawing.Point(403, 157);
+ this.checkBox12.Name = "checkBox12";
+ this.checkBox12.Size = new System.Drawing.Size(13, 12);
+ this.checkBox12.TabIndex = 25;
+ this.checkBox12.UseVisualStyleBackColor = true;
+ //
+ // label14
+ //
+ this.label14.Location = new System.Drawing.Point(528, 129);
+ this.label14.Name = "label14";
+ this.label14.Size = new System.Drawing.Size(77, 19);
+ this.label14.TabIndex = 31;
+ this.label14.Text = "Percentage";
+ //
+ // checkBox15
+ //
+ this.checkBox15.AutoSize = true;
+ this.checkBox15.Enabled = false;
+ this.checkBox15.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox15.Location = new System.Drawing.Point(538, 157);
+ this.checkBox15.Name = "checkBox15";
+ this.checkBox15.Size = new System.Drawing.Size(13, 12);
+ this.checkBox15.TabIndex = 28;
+ this.checkBox15.UseVisualStyleBackColor = true;
+ //
+ // label15
+ //
+ this.label15.Location = new System.Drawing.Point(653, 129);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(77, 19);
+ this.label15.TabIndex = 33;
+ this.label15.Text = "mHz";
+ //
+ // checkBox13
+ //
+ this.checkBox13.AutoSize = true;
+ this.checkBox13.Enabled = false;
+ this.checkBox13.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox13.Location = new System.Drawing.Point(662, 157);
+ this.checkBox13.Name = "checkBox13";
+ this.checkBox13.Size = new System.Drawing.Size(13, 12);
+ this.checkBox13.TabIndex = 32;
+ this.checkBox13.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(576, 452);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(106, 28);
+ this.button2.TabIndex = 34;
+ this.button2.Text = "Load Sensors";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
+ // checkBox14
+ //
+ this.checkBox14.AutoSize = true;
+ this.checkBox14.Enabled = false;
+ this.checkBox14.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox14.Location = new System.Drawing.Point(38, 258);
+ this.checkBox14.Name = "checkBox14";
+ this.checkBox14.Size = new System.Drawing.Size(62, 21);
+ this.checkBox14.TabIndex = 35;
+ this.checkBox14.Text = "HD C:";
+ this.checkBox14.UseVisualStyleBackColor = true;
+ //
+ // checkBox16
+ //
+ this.checkBox16.AutoSize = true;
+ this.checkBox16.Enabled = false;
+ this.checkBox16.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox16.Location = new System.Drawing.Point(38, 286);
+ this.checkBox16.Name = "checkBox16";
+ this.checkBox16.Size = new System.Drawing.Size(63, 21);
+ this.checkBox16.TabIndex = 36;
+ this.checkBox16.Text = "HD D:";
+ this.checkBox16.UseVisualStyleBackColor = true;
+ //
+ // checkBox17
+ //
+ this.checkBox17.AutoSize = true;
+ this.checkBox17.Enabled = false;
+ this.checkBox17.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox17.Location = new System.Drawing.Point(38, 314);
+ this.checkBox17.Name = "checkBox17";
+ this.checkBox17.Size = new System.Drawing.Size(62, 21);
+ this.checkBox17.TabIndex = 37;
+ this.checkBox17.Text = "HD E:";
+ this.checkBox17.UseVisualStyleBackColor = true;
+ //
+ // groupBox2
+ //
+ this.groupBox2.Controls.Add(this.groupBox3);
+ this.groupBox2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.groupBox2.Location = new System.Drawing.Point(29, 240);
+ this.groupBox2.Name = "groupBox2";
+ this.groupBox2.Size = new System.Drawing.Size(768, 9);
+ this.groupBox2.TabIndex = 38;
+ this.groupBox2.TabStop = false;
+ //
+ // groupBox3
+ //
+ this.groupBox3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.groupBox3.Location = new System.Drawing.Point(0, 0);
+ this.groupBox3.Name = "groupBox3";
+ this.groupBox3.Size = new System.Drawing.Size(768, 9);
+ this.groupBox3.TabIndex = 39;
+ this.groupBox3.TabStop = false;
+ //
+ // textBox1
+ //
+ this.textBox1.BorderColor = System.Drawing.Color.Empty;
+ this.textBox1.Location = new System.Drawing.Point(547, 258);
+ this.textBox1.Name = "textBox1";
+ this.textBox1.Size = new System.Drawing.Size(240, 22);
+ this.textBox1.TabIndex = 39;
+ this.textBox1.Text = "C:\\WINDOWS\\Media";
+ //
+ // label16
+ //
+ this.label16.Location = new System.Drawing.Point(355, 268);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(173, 18);
+ this.label16.TabIndex = 40;
+ this.label16.Text = "Status Alarm Sound Folder";
+ //
+ // button3
+ //
+ this.button3.Location = new System.Drawing.Point(797, 258);
+ this.button3.Name = "button3";
+ this.button3.Size = new System.Drawing.Size(29, 27);
+ this.button3.TabIndex = 41;
+ this.button3.Text = "...";
+ this.button3.UseVisualStyleBackColor = true;
+ this.button3.Click += new System.EventHandler(this.button3_Click);
+ //
+ // label17
+ //
+ this.label17.Location = new System.Drawing.Point(355, 295);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(211, 19);
+ this.label17.TabIndex = 42;
+ this.label17.Text = "Alarm threshold for HD (in MB)";
+ //
+ // textBox2
+ //
+ this.textBox2.BorderColor = System.Drawing.Color.Empty;
+ this.textBox2.Location = new System.Drawing.Point(547, 286);
+ this.textBox2.Name = "textBox2";
+ this.textBox2.Size = new System.Drawing.Size(87, 22);
+ this.textBox2.TabIndex = 43;
+ this.textBox2.Text = "200";
+ //
+ // checkBox18
+ //
+ this.checkBox18.AutoSize = true;
+ this.checkBox18.Enabled = false;
+ this.checkBox18.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox18.Location = new System.Drawing.Point(38, 397);
+ this.checkBox18.Name = "checkBox18";
+ this.checkBox18.Size = new System.Drawing.Size(63, 21);
+ this.checkBox18.TabIndex = 46;
+ this.checkBox18.Text = "HD H:";
+ this.checkBox18.UseVisualStyleBackColor = true;
+ //
+ // checkBox19
+ //
+ this.checkBox19.AutoSize = true;
+ this.checkBox19.Enabled = false;
+ this.checkBox19.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox19.Location = new System.Drawing.Point(38, 369);
+ this.checkBox19.Name = "checkBox19";
+ this.checkBox19.Size = new System.Drawing.Size(64, 21);
+ this.checkBox19.TabIndex = 45;
+ this.checkBox19.Text = "HD G:";
+ this.checkBox19.UseVisualStyleBackColor = true;
+ //
+ // checkBox20
+ //
+ this.checkBox20.AutoSize = true;
+ this.checkBox20.Enabled = false;
+ this.checkBox20.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox20.Location = new System.Drawing.Point(38, 342);
+ this.checkBox20.Name = "checkBox20";
+ this.checkBox20.Size = new System.Drawing.Size(61, 21);
+ this.checkBox20.TabIndex = 44;
+ this.checkBox20.Text = "HD F:";
+ this.checkBox20.UseVisualStyleBackColor = true;
+ //
+ // checkBox21
+ //
+ this.checkBox21.AutoSize = true;
+ this.checkBox21.Enabled = false;
+ this.checkBox21.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox21.Location = new System.Drawing.Point(115, 397);
+ this.checkBox21.Name = "checkBox21";
+ this.checkBox21.Size = new System.Drawing.Size(63, 21);
+ this.checkBox21.TabIndex = 52;
+ this.checkBox21.Text = "HD N:";
+ this.checkBox21.UseVisualStyleBackColor = true;
+ //
+ // checkBox22
+ //
+ this.checkBox22.AutoSize = true;
+ this.checkBox22.Enabled = false;
+ this.checkBox22.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+ this.checkBox22.Location = new System.Drawing.Point(115, 369);
+ this.checkBox22.Name = "checkBox22";
+ this.checkBox22.Size = new System.Drawing.Size(64, 21);
+ this.checkBox22.TabIndex = 51;
+ this.checkBox22.Text = "HD M:";
+ this.checkBox22.UseVisualStyleBackColor = true;
+ //
+ // checkBox23
+ //
+ this.checkBox23.AutoSize = true;
+ this.checkBox23.Enabled = false;
+ ...
[truncated message content] |
|
From: <fr...@us...> - 2007-08-09 16:24:58
|
Revision: 822
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=822&view=rev
Author: framug
Date: 2007-08-09 09:23:38 -0700 (Thu, 09 Aug 2007)
Log Message:
-----------
Plugin has his own xml config file
Modified Paths:
--------------
trunk/plugins/MyStatus/GUIStatus.cs
trunk/plugins/MyStatus/GUIStatusDetails.cs
trunk/plugins/MyStatus/GUIStatusPrefs.cs
trunk/plugins/MyStatus/SetupForm.cs
Modified: trunk/plugins/MyStatus/GUIStatus.cs
===================================================================
--- trunk/plugins/MyStatus/GUIStatus.cs 2007-08-09 16:18:03 UTC (rev 821)
+++ trunk/plugins/MyStatus/GUIStatus.cs 2007-08-09 16:23:38 UTC (rev 822)
@@ -707,7 +707,7 @@
private void LoadSound()
{
- using(MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml"))
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyStatus.xml"))
{
soundFolder=xmlreader.GetValueAsString("status","status_sound_folder","");
sound=xmlreader.GetValueAsString("status","status_sound","");
@@ -717,7 +717,7 @@
private void LoadSettings()
{
int num=0;
- using(MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml"))
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyStatus.xml"))
{
isMbm=xmlreader.GetValueAsBool("status","status_is_mbm",false);
showStatusBar=xmlreader.GetValueAsBool("status","status_bar_show",false);
Modified: trunk/plugins/MyStatus/GUIStatusDetails.cs
===================================================================
--- trunk/plugins/MyStatus/GUIStatusDetails.cs 2007-08-09 16:18:03 UTC (rev 821)
+++ trunk/plugins/MyStatus/GUIStatusDetails.cs 2007-08-09 16:23:38 UTC (rev 822)
@@ -87,7 +87,8 @@
}
private void SaveSettings() {
- using(MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml")) {
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ {
xmlwriter.SetValueAsBool("status","status_"+GUIStatus.GetName()+"al",((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_ALARM)).Selected);
GUIStatus.SetAlarm(((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_ALARM)).Selected);
}
Modified: trunk/plugins/MyStatus/GUIStatusPrefs.cs
===================================================================
--- trunk/plugins/MyStatus/GUIStatusPrefs.cs 2007-08-09 16:18:03 UTC (rev 821)
+++ trunk/plugins/MyStatus/GUIStatusPrefs.cs 2007-08-09 16:23:38 UTC (rev 822)
@@ -178,7 +178,8 @@
}
private void SaveSettings() {
- using(MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml")) {
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ {
xmlwriter.SetValueAsBool("status","status_shutdown",((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_SHUT)).Selected);
xmlwriter.SetValue("status","status_sound",sound);
xmlwriter.SetValue("status","status_sound_delay",spin);
@@ -186,7 +187,8 @@
}
private void LoadSettings() {
- using(MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml")) {
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ {
soundFolder=xmlreader.GetValueAsString("status","status_sound_folder","");
sound=xmlreader.GetValueAsString("status","status_sound","");
}
Modified: trunk/plugins/MyStatus/SetupForm.cs
===================================================================
--- trunk/plugins/MyStatus/SetupForm.cs 2007-08-09 16:18:03 UTC (rev 821)
+++ trunk/plugins/MyStatus/SetupForm.cs 2007-08-09 16:23:38 UTC (rev 822)
@@ -1146,7 +1146,7 @@
/// </summary>
private void SaveSettings()
{
- using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml"))
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyStatus.xml"))
{
xmlwriter.SetValueAsBool("status", "status_is_mbm", isMbm);
xmlwriter.SetValueAsBool("status", "status_bar_show", checkBox39.Checked);
@@ -1221,7 +1221,7 @@
private void LoadSettings()
{
bool isver = false;
- using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MediaPortal.xml"))
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyStatus.xml"))
{
int ver = 0;
ver = xmlreader.GetValueAsInt("status", "status_ver", 0);
@@ -1276,7 +1276,7 @@
}
if (isver == false)
{
- using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MediaPortal.xml"))
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyStatus.xml"))
{
xmlwriter.SetValue("status", "status_ver", statusVer);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <fr...@us...> - 2007-08-09 16:36:43
|
Revision: 820
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=820&view=rev
Author: framug
Date: 2007-08-09 09:10:35 -0700 (Thu, 09 Aug 2007)
Log Message:
-----------
Missing dll mbm
Modified Paths:
--------------
trunk/plugins/MyStatus/My Status.csproj
Added Paths:
-----------
trunk/plugins/MyStatus/mbm5.dll
Modified: trunk/plugins/MyStatus/My Status.csproj
===================================================================
--- trunk/plugins/MyStatus/My Status.csproj 2007-08-09 06:50:42 UTC (rev 819)
+++ trunk/plugins/MyStatus/My Status.csproj 2007-08-09 16:10:35 UTC (rev 820)
@@ -39,7 +39,6 @@
<Reference Include="mbm5, Version=1.0.1778.42739, Culture=neutral">
<SpecificVersion>False</SpecificVersion>
<HintPath>.\mbm5.dll</HintPath>
- <Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
Added: trunk/plugins/MyStatus/mbm5.dll
===================================================================
(Binary files differ)
Property changes on: trunk/plugins/MyStatus/mbm5.dll
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <fr...@us...> - 2008-05-20 05:52:21
|
Revision: 1799
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1799&view=rev
Author: framug
Date: 2008-05-19 22:52:09 -0700 (Mon, 19 May 2008)
Log Message:
-----------
- XmlConfig for setup
Modified Paths:
--------------
trunk/plugins/MyStatus/My Status.csproj
trunk/plugins/MyStatus/SetupForm.cs
Added Paths:
-----------
trunk/plugins/MyStatus/XmlConfig.cs
Modified: trunk/plugins/MyStatus/My Status.csproj
===================================================================
--- trunk/plugins/MyStatus/My Status.csproj 2008-05-20 04:31:48 UTC (rev 1798)
+++ trunk/plugins/MyStatus/My Status.csproj 2008-05-20 05:52:09 UTC (rev 1799)
@@ -63,6 +63,7 @@
<Compile Include="SetupForm.cs">
<SubType>Form</SubType>
</Compile>
+ <Compile Include="XmlConfig.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="SetupForm.resx">
Modified: trunk/plugins/MyStatus/SetupForm.cs
===================================================================
--- trunk/plugins/MyStatus/SetupForm.cs 2008-05-20 04:31:48 UTC (rev 1798)
+++ trunk/plugins/MyStatus/SetupForm.cs 2008-05-20 05:52:09 UTC (rev 1799)
@@ -521,7 +521,7 @@
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(64, 16);
this.label15.TabIndex = 33;
- this.label15.Text = "mHz";
+ this.label15.Text = "Mhz";
//
// checkBox13
//
@@ -1147,7 +1147,7 @@
/// </summary>
private void SaveSettings()
{
- using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
+/* using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
xmlwriter.SetValueAsBool("status", "status_is_mbm", isMbm);
xmlwriter.SetValueAsBool("status", "status_bar_show", checkBox39.Checked);
@@ -1213,7 +1213,76 @@
xmlwriter.SetValueAsBool("status", "status_lwx", checkBox35.Checked);
xmlwriter.SetValueAsBool("status", "status_lwy", checkBox34.Checked);
xmlwriter.SetValueAsBool("status", "status_lwz", checkBox33.Checked);
- }
+ } */
+
+ XmlConfig XmlConfig = new XmlConfig();
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_is_mbm", isMbm);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_bar_show", checkBox39.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_bar_top", checkBox40.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_bar_bottom", checkBox41.Checked);
+ if (checkBox39.Checked == true)
+ {
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_bar_sensor", comboBox1.Items[comboBox1.SelectedIndex].ToString());
+ }
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_sound_folder", textBox1.Text);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_hd_threshold", textBox2.Text);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_temp1", checkBox1.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_temp1i", aTemperature[1]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_temp2", checkBox2.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_temp2i", aTemperature[2]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_temp3", checkBox3.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_temp3i", aTemperature[3]);
+
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_fan1", checkBox6.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_fan1i", aFan[1]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_fan2", checkBox5.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_fan2i", aFan[2]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_fan3", checkBox4.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_fan3i", aFan[3]);
+
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt1", checkBox9.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt1i", aVolt[1]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt2", checkBox8.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt2i", aVolt[2]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt3", checkBox7.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt3i", aVolt[3]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt4", checkBox12.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt4i", aVolt[4]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt5", checkBox11.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt5i", aVolt[5]);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt6", checkBox11.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_volt6i", aVolt[6]);
+
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_mhz1", checkBox13.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_mhz1i", aMhz[1]);
+
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_perc1", checkBox15.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_perc1i", aPercentage[1]);
+
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwc", checkBox14.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwd", checkBox16.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwe", checkBox17.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwf", checkBox20.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwg", checkBox19.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwh", checkBox18.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwi", checkBox26.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwj", checkBox25.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwk", checkBox24.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwl", checkBox23.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwm", checkBox22.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwn", checkBox21.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwo", checkBox32.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwp", checkBox31.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwq", checkBox30.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwr", checkBox29.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lws", checkBox28.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwt", checkBox27.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwu", checkBox38.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwv", checkBox37.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lww", checkBox36.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwx", checkBox35.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwy", checkBox34.Checked);
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_lwz", checkBox33.Checked);
}
/// <summary>
@@ -1221,8 +1290,7 @@
/// </summary>
private void LoadSettings()
{
- bool isver = false;
- using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
+/* using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
int ver = 0;
ver = xmlreader.GetValueAsInt("status", "status_ver", 0);
@@ -1281,7 +1349,65 @@
{
xmlwriter.SetValue("status", "status_ver", statusVer);
}
- }
+ } */
+
+ XmlConfig XmlConfig = new XmlConfig();
+ bool isver = false;
+ int ver = 0;
+ ver = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_ver", 0);
+ if (ver != statusVer)
+ {
+ isver = false;
+ }
+ else
+ {
+ isver = true;
+ textBox2.Text = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_hd_threshold", "100");
+ textBox1.Text = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_sound_folder", "C:\\windows\\media");
+ checkBox1.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_temp1", false);
+ checkBox2.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_temp2", false);
+ checkBox3.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_temp3", false);
+ checkBox6.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_fan1", false);
+ checkBox5.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_fan2", false);
+ checkBox4.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_fan3", false);
+ checkBox9.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_volt1", false);
+ checkBox8.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_volt2", false);
+ checkBox7.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_volt3", false);
+ checkBox12.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_volt4", false);
+ checkBox11.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_volt5", false);
+ checkBox10.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_volt6", false);
+ checkBox13.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_mhz1", false);
+ checkBox15.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_perc1", false);
+ checkBox14.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwc", false);
+ checkBox16.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwd", false);
+ checkBox17.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwe", false);
+ checkBox20.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwf", false);
+ checkBox19.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwg", false);
+ checkBox18.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwh", false);
+ checkBox26.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwi", false);
+ checkBox25.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwj", false);
+ checkBox24.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwk", false);
+ checkBox23.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwl", false);
+ checkBox22.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwm", false);
+ checkBox21.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwn", false);
+ checkBox32.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwo", false);
+ checkBox31.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwp", false);
+ checkBox30.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwq", false);
+ checkBox29.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwr", false);
+ checkBox28.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lws", false);
+ checkBox27.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwt", false);
+ checkBox38.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwu", false);
+ checkBox37.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwv", false);
+ checkBox36.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lww", false);
+ checkBox35.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwx", false);
+ checkBox34.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwy", false);
+ checkBox33.Checked = XmlConfig.ReadXmlConfig("MyStatus", "status", "status_lwz", false);
+ }
+
+ if (isver == false)
+ {
+ XmlConfig.WriteXmlConfig("MyStatus", "status", "status_ver", statusVer);
+ }
}
#endregion
Added: trunk/plugins/MyStatus/XmlConfig.cs
===================================================================
--- trunk/plugins/MyStatus/XmlConfig.cs (rev 0)
+++ trunk/plugins/MyStatus/XmlConfig.cs 2008-05-20 05:52:09 UTC (rev 1799)
@@ -0,0 +1,320 @@
+#region Banneer
+/*
+ * Copyright (C) 2008 framug
+ *
+ * This Program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This Program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Make; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+#endregion
+
+#region HowToUse
+/*
+ * Purpose of this class is to manage a xml config file.
+ * The generated file is MediaPortal xml config file compatible.
+ * It has been written in case of you have your own plugin save button or, you don't want
+ * to use MediaPortal.Configuration and MediaPortal.Profile in your plugin classes.
+ * ie : using (Settings ReadOrWriteXml = new Settings(Config.GetFile(Config.Dir.Config, PluginName())))
+ * { ReadOrWriteXml = ... }
+ *
+ * How to use :
+ * - Add this class to your project.
+ * - Change namespace of this class with your own plugin name.
+ *
+ * - Call methods in your own plugin this way for writing :
+ * XmlConfig XmlConfig = new XmlConfig();
+ * XmlConfig.WriteXmlConfig(StringFileName, StringSectionName, StringEntryName, StringValueName);
+ * XmlConfig.WriteXmlConfig(StringFileName, StringSectionName, StringEntryName, BoolValueName);
+ * XmlConfig.WriteXmlConfig(StringFileName, StringSectionName, StringEntryName, IntValueName);
+ *
+ * - Call methods in your own plugin this way for reading :
+ * XmlConfig XmlConfig = new XmlConfig();
+ * YourString = XmlConfig.ReadXmlConfig(StringFileName, StringSectionName, StringEntryName, StringValueDefaultName);
+ * YourBool = XmlConfig.ReadXmlConfig(StringFileName, StringSectionName, StringEntryName, BoolValueDefaultName);
+ * YourInt = XmlConfig.ReadXmlConfig(StringFileName, StringSectionName, StringEntryName, IntValueDefaultName);
+ *
+ * - Call methods in your own plugin this way for removing entry :
+ * XmlConfig XmlConfig = new XmlConfig();
+ * XmlConfig.RemoveEntry(StringFileName, StringSectionName, StringEntryName);
+ *
+ */
+#endregion
+
+#region using
+using System;
+using System.IO; // For I/O file
+using System.Collections.Generic;
+using System.Text;
+using System.Xml; // For XmlDocument
+using MediaPortal.Configuration; // For recover install MediaPortal path
+#endregion
+
+namespace GUIStatus
+{
+ class XmlConfig
+ {
+
+#region <<DECLARATION>>
+ XmlDocument configxml = new XmlDocument();
+#endregion
+
+#region <<public>>
+
+ // Recover install MediaPortal path
+ public string PathInstalMP()
+ {
+ string path = Config.GetFolder(Config.Dir.Config);
+ return path;
+ }
+
+ // Build entire filename of config file
+ public string EntireFilenameConfig(string FileName)
+ {
+ string entirefilename = PathInstalMP() + @"\" + FileName + ".xml";
+ return entirefilename;
+ }
+
+ // Called with bool type
+ public void WriteXmlConfig(string FileName, string Section, string Entry, bool Value)
+ {
+ string value = "";
+ // Change true by "yes" and false by "no" for xml MediaPortal compatibility
+ if (Value)
+ {
+ value = "yes";
+ }
+ else
+ {
+ value = "no";
+ }
+
+ WriteXmlConfig(FileName, Section, Entry, value);
+ }
+
+ // Called with decimal type
+ public void WriteXmlConfig(string FileName, string Section, string Entry, decimal Value)
+ {
+ string value = Value.ToString();
+
+ WriteXmlConfig(FileName, Section, Entry, value);
+ }
+
+ // Write a config file with XmlDocument
+ public void WriteXmlConfig(string FileName, string Section, string Entry, string Value)
+ {
+ // Create file if doesn't exist
+ if (!File.Exists(EntireFilenameConfig(FileName)))
+ {
+ CreateXmlConfig(FileName);
+ }
+
+ //Open xml document
+ configxml.Load(EntireFilenameConfig(FileName));
+ //Recover profile node
+ XmlElement profile = configxml.DocumentElement;
+ //Create section if doesn't exist
+ String XPath = @"/profile/section[@name='" + Section + "']";
+ XmlNodeList ListSection = configxml.SelectNodes(XPath);
+ if (ListSection.Count < 1)
+ {
+ CreateSection(Section);
+ }
+ //Posit on section node
+ XmlNode section = profile.SelectSingleNode("section[@name='" + Section + "']");
+
+ //Create Entry if doesn't exist
+ XPath = @"/profile/section[@name='" + Section + "']/entry[@name='" + Entry + "']";
+ XmlNodeList ListEntry = configxml.SelectNodes(XPath);
+ if (ListEntry.Count < 1)
+ {
+ CreateEntry(Section, Entry);
+ }
+ //Posit on entry node
+ XmlNode entry = section.SelectSingleNode("entry[@name='" + Entry + "']");
+
+ //Store entry value
+ entry.InnerText = Value;
+
+ //Save xml config file
+ configxml.Save(EntireFilenameConfig(FileName));
+ }
+
+ // Remove an Entry
+ public void RemoveEntry(string FileName, string Section, string Entry)
+ {
+ // Return if xml file doesn't exist
+ if (!File.Exists(EntireFilenameConfig(FileName)))
+ {
+ return;
+ }
+
+ //Open xml document
+ configxml.Load(EntireFilenameConfig(FileName));
+ //Recover profile node
+ XmlElement profile = configxml.DocumentElement;
+
+ //Posit on value
+ String XPath = @"/profile/section[@name='" + Section + "']/entry[@name='" + Entry + "']";
+ XmlNodeList ListEntry = configxml.SelectNodes(XPath);
+
+ // If value exist, remove it otherwise, return
+ if (ListEntry.Count > 0)
+ {
+ //Posit on section node
+ XmlNode section = profile.SelectSingleNode("section[@name='" + Section + "']");
+ //Posit on entry node
+ XmlNode entry = section.SelectSingleNode("entry[@name='" + Entry + "']");
+ //Remove the entry node for section
+ section.RemoveChild(entry);
+ //Save xml config file
+ configxml.Save(EntireFilenameConfig(FileName));
+ }
+ return;
+ }
+
+ // Called with bool type
+ public bool ReadXmlConfig(string FileName, string Section, string Entry, bool Value)
+ {
+ // Change true by "yes" and false by "no" for xml MediaPortal compatibility
+ string value = Value.ToString();
+ if (Value)
+ {
+ value = "yes";
+ }
+ else
+ {
+ value = "no";
+ }
+
+ string result = ReadXmlConfig(FileName, Section, Entry, value);
+
+ // Change "yes" by true and "no" by false for xml MediaPortal compatibility
+ if (result == "yes")
+ {
+ Value = true;
+ }
+ else
+ {
+ Value = false;
+ }
+
+ return Value;
+ }
+
+ // Called with int type
+ public int ReadXmlConfig(string FileName, string Section, string Entry, int Value)
+ {
+ string value = Value.ToString();
+
+ string result = ReadXmlConfig(FileName, Section, Entry, value);
+
+ Value = Convert.ToInt32(result);
+
+ return Value;
+ }
+
+ // Read xml config file with XmlDocument
+ public string ReadXmlConfig(string FileName, string Section, string Entry, string Value)
+ {
+ // Default value if xml file doesn't exist
+ if (!File.Exists(EntireFilenameConfig(FileName)))
+ {
+ return Value;
+ }
+
+ //Open xml document
+ configxml.Load(EntireFilenameConfig(FileName));
+ //Recover profile node
+ XmlElement profile = configxml.DocumentElement;
+
+ //Posit on value
+ String XPath = @"/profile/section[@name='" + Section + "']/entry[@name='" + Entry + "']";
+ XmlNodeList ListEntry = configxml.SelectNodes(XPath);
+
+ // If value exist, return it otherwise, return default value
+ if (ListEntry.Count > 0)
+ {
+ //Posit on section node
+ XmlNode section = profile.SelectSingleNode("section[@name='" + Section + "']");
+ //Posit on entry node
+ XmlNode entry = section.SelectSingleNode("entry[@name='" + Entry + "']");
+ //Recover value with entry data
+ Value = entry.InnerText;
+ }
+
+ return Value;
+ }
+
+#endregion
+
+#region <<private>>
+
+ // Create xml config file with profile node
+ private void CreateXmlConfig(string FileName)
+ {
+ XmlDocument configxml = new XmlDocument();
+ //Declaration of XML document type (utf-8, same as MediaPortal)
+ XmlDeclaration declaration = configxml.CreateXmlDeclaration("1.0", "utf-8", "");
+ //Add declaration to document
+ configxml.AppendChild(declaration);
+ //Create profile node
+ XmlNode profile = configxml.CreateNode(System.Xml.XmlNodeType.Element, "profile", "");
+ //Add node to document
+ configxml.AppendChild(profile);
+
+ //Save xml config file
+ configxml.Save(EntireFilenameConfig(FileName));
+ }
+
+ // create section node
+ private void CreateSection(string Section)
+ {
+ //Recover profile node
+ XmlElement profile = configxml.DocumentElement;
+ //Create new section node
+ XmlNode section = configxml.CreateElement("section");
+ //Add "name" attribute to section node
+ XmlAttribute name = configxml.CreateAttribute("name");
+ //value is section name
+ name.Value = Section;
+ //Add value to section
+ section.Attributes.Append(name);
+ //Add section to document
+ profile.AppendChild(section);
+ }
+
+ // create entry node
+ private void CreateEntry(string Section, string Entry)
+ {
+ //Recover profile node
+ XmlElement profile = configxml.DocumentElement;
+ //Posit on section node
+ XmlNode section = profile.SelectSingleNode("section[@name='" + Section + "']");
+ //Create new node for entry
+ XmlNode entry = configxml.CreateElement("entry");
+ //Add "name" attribute to entry node
+ XmlAttribute name = configxml.CreateAttribute("name");
+ //value is entry name
+ name.Value = Entry;
+ //Add value to entry
+ entry.Attributes.Append(name);
+ //Add entry to document
+ section.AppendChild(entry);
+ }
+
+#endregion
+
+ } // end of class
+} // end of namespace
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <fr...@us...> - 2008-04-26 11:46:17
|
Revision: 1720
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1720&view=rev
Author: framug
Date: 2008-04-26 04:46:12 -0700 (Sat, 26 Apr 2008)
Log Message:
-----------
- mystatus.xml is loaded/written in correct folder.
Modified Paths:
--------------
trunk/plugins/MyStatus/GUIStatus.cs
trunk/plugins/MyStatus/GUIStatusDetails.cs
trunk/plugins/MyStatus/GUIStatusPrefs.cs
trunk/plugins/MyStatus/SetupForm.cs
Modified: trunk/plugins/MyStatus/GUIStatus.cs
===================================================================
--- trunk/plugins/MyStatus/GUIStatus.cs 2008-04-26 11:16:47 UTC (rev 1719)
+++ trunk/plugins/MyStatus/GUIStatus.cs 2008-04-26 11:46:12 UTC (rev 1720)
@@ -31,6 +31,7 @@
using MediaPortal.Player;
using MediaPortal.Playlists;
using mbm5.MBMInfo;
+using MediaPortal.Configuration;
#endregion
namespace MediaPortal.GUI.GUIStatus
@@ -707,7 +708,7 @@
private void LoadSound()
{
- using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
soundFolder=xmlreader.GetValueAsString("status","status_sound_folder","");
sound=xmlreader.GetValueAsString("status","status_sound","");
@@ -717,7 +718,7 @@
private void LoadSettings()
{
int num=0;
- using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
isMbm=xmlreader.GetValueAsBool("status","status_is_mbm",false);
showStatusBar=xmlreader.GetValueAsBool("status","status_bar_show",false);
Modified: trunk/plugins/MyStatus/GUIStatusDetails.cs
===================================================================
--- trunk/plugins/MyStatus/GUIStatusDetails.cs 2008-04-26 11:16:47 UTC (rev 1719)
+++ trunk/plugins/MyStatus/GUIStatusDetails.cs 2008-04-26 11:46:12 UTC (rev 1720)
@@ -27,6 +27,7 @@
using MediaPortal.GUI.Library;
using MediaPortal.Dialogs;
using mbm5.MBMInfo;
+using MediaPortal.Configuration;
#endregion
namespace MediaPortal.GUI.GUIStatus {
@@ -87,7 +88,7 @@
}
private void SaveSettings() {
- using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
xmlwriter.SetValueAsBool("status","status_"+GUIStatus.GetName()+"al",((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_ALARM)).Selected);
GUIStatus.SetAlarm(((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_ALARM)).Selected);
Modified: trunk/plugins/MyStatus/GUIStatusPrefs.cs
===================================================================
--- trunk/plugins/MyStatus/GUIStatusPrefs.cs 2008-04-26 11:16:47 UTC (rev 1719)
+++ trunk/plugins/MyStatus/GUIStatusPrefs.cs 2008-04-26 11:46:12 UTC (rev 1720)
@@ -29,6 +29,7 @@
using MediaPortal.GUI.Library;
using MediaPortal.Dialogs;
using mbm5.MBMInfo;
+using MediaPortal.Configuration;
#endregion
namespace MediaPortal.GUI.GUIStatus {
@@ -178,7 +179,7 @@
}
private void SaveSettings() {
- using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
xmlwriter.SetValueAsBool("status","status_shutdown",((GUIToggleButtonControl)GetControl((int)Controls.CONTROL_SHUT)).Selected);
xmlwriter.SetValue("status","status_sound",sound);
@@ -187,7 +188,7 @@
}
private void LoadSettings() {
- using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
soundFolder=xmlreader.GetValueAsString("status","status_sound_folder","");
sound=xmlreader.GetValueAsString("status","status_sound","");
Modified: trunk/plugins/MyStatus/SetupForm.cs
===================================================================
--- trunk/plugins/MyStatus/SetupForm.cs 2008-04-26 11:16:47 UTC (rev 1719)
+++ trunk/plugins/MyStatus/SetupForm.cs 2008-04-26 11:46:12 UTC (rev 1720)
@@ -32,6 +32,7 @@
using System.Diagnostics;
using MediaPortal.GUI.Library;
using mbm5.MBMInfo;
+using MediaPortal.Configuration;
namespace GUIStatus
{
@@ -1146,7 +1147,7 @@
/// </summary>
private void SaveSettings()
{
- using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
xmlwriter.SetValueAsBool("status", "status_is_mbm", isMbm);
xmlwriter.SetValueAsBool("status", "status_bar_show", checkBox39.Checked);
@@ -1221,7 +1222,7 @@
private void LoadSettings()
{
bool isver = false;
- using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
int ver = 0;
ver = xmlreader.GetValueAsInt("status", "status_ver", 0);
@@ -1276,7 +1277,7 @@
}
if (isver == false)
{
- using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyStatus.xml"))
+ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyStatus.xml")))
{
xmlwriter.SetValue("status", "status_ver", statusVer);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|