From: <yk...@us...> - 2008-01-19 22:34:10
|
Revision: 1284 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1284&view=rev Author: ykamchi Date: 2008-01-19 14:34:08 -0800 (Sat, 19 Jan 2008) Log Message: ----------- Added items remotely C:\Documents and Settings\ykamchi\My Documents\Visual Studio 2008\Projects\MediaServer Added Paths: ----------- trunk/plugins/MediaServer/ trunk/plugins/MediaServer/MediaServer.sln trunk/plugins/MediaServer/MediaServerConfiguration/ trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.Designer.cs trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.cs trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.resx trunk/plugins/MediaServer/MediaServerConfiguration/Main.Designer.cs trunk/plugins/MediaServer/MediaServerConfiguration/Main.cs trunk/plugins/MediaServer/MediaServerConfiguration/Main.resx trunk/plugins/MediaServer/MediaServerConfiguration/MediaServerConfiguration.csproj trunk/plugins/MediaServer/MediaServerConfiguration/MediaServerConfiguration.csproj.user trunk/plugins/MediaServer/MediaServerConfiguration/Program.cs trunk/plugins/MediaServer/MediaServerConfiguration/Properties/ trunk/plugins/MediaServer/MediaServerConfiguration/Properties/AssemblyInfo.cs trunk/plugins/MediaServer/MediaServerConfiguration/Properties/Resources.Designer.cs trunk/plugins/MediaServer/MediaServerConfiguration/Properties/Resources.resx trunk/plugins/MediaServer/MediaServerConfiguration/Properties/Settings.Designer.cs trunk/plugins/MediaServer/MediaServerConfiguration/Properties/Settings.settings trunk/plugins/MediaServer/MediaServerConfiguration/SettingsUtil.cs trunk/plugins/MediaServer/MediaServerConfiguration/SharingUtil.cs trunk/plugins/MediaServer/MediaServerConfiguration/Test.Designer.cs trunk/plugins/MediaServer/MediaServerConfiguration/Test.cs trunk/plugins/MediaServer/MediaServerConfiguration/Test.resx trunk/plugins/MediaServer/MediaServerConfiguration/bin/ trunk/plugins/MediaServer/MediaServerConfiguration/bin/Debug/ trunk/plugins/MediaServer/MediaServerConfiguration/bin/Release/ trunk/plugins/MediaServer/MediaServerConfiguration/obj/ trunk/plugins/MediaServer/MediaServerConfiguration/obj/Debug/ trunk/plugins/MediaServer/MediaServerConfiguration/obj/Debug/ResolveAssemblyReference.cache trunk/plugins/MediaServer/MediaServerConfiguration/obj/Debug/TempPE/ trunk/plugins/MediaServer/MediaServerConfiguration/obj/Release/ trunk/plugins/MediaServer/MediaServerConfiguration/obj/Release/ResolveAssemblyReference.cache trunk/plugins/MediaServer/MediaServerConfiguration/obj/Release/TempPE/ trunk/plugins/MediaServer/MediaServerPlugin/ trunk/plugins/MediaServer/MediaServerPlugin/Loader.cs trunk/plugins/MediaServer/MediaServerPlugin/MediaServerPlugin.csproj trunk/plugins/MediaServer/MediaServerPlugin/MediaServerPlugin.csproj.user trunk/plugins/MediaServer/MediaServerPlugin/MediaServerPluginSetup.cs trunk/plugins/MediaServer/MediaServerPlugin/MediaServerPluginSetup.resx trunk/plugins/MediaServer/MediaServerPlugin/Properties/ trunk/plugins/MediaServer/MediaServerPlugin/Properties/AssemblyInfo.cs trunk/plugins/MediaServer/MediaServerPlugin/Properties/Resources.Designer.cs trunk/plugins/MediaServer/MediaServerPlugin/Properties/Resources.resx trunk/plugins/MediaServer/MediaServerPlugin/bin/ trunk/plugins/MediaServer/MediaServerPlugin/bin/Debug/ trunk/plugins/MediaServer/MediaServerPlugin/bin/Release/ trunk/plugins/MediaServer/MediaServerPlugin/obj/ trunk/plugins/MediaServer/MediaServerPlugin/obj/Debug/ trunk/plugins/MediaServer/MediaServerPlugin/obj/Debug/TempPE/ trunk/plugins/MediaServer/MediaServerPlugin/obj/Release/ trunk/plugins/MediaServer/MediaServerPlugin/obj/Release/TempPE/ trunk/plugins/MediaServer/MediaServerPlugin/obj/Release/TempPE/Properties.Resources.Designer.cs.dll trunk/plugins/MediaServer/MediaServerService/ trunk/plugins/MediaServer/MediaServerService/MediaPortal.xml trunk/plugins/MediaServer/MediaServerService/MediaServerService.cs trunk/plugins/MediaServer/MediaServerService/MediaServerService.csproj trunk/plugins/MediaServer/MediaServerService/Program.cs trunk/plugins/MediaServer/MediaServerService/ProjectInstaller.Designer.cs trunk/plugins/MediaServer/MediaServerService/ProjectInstaller.cs trunk/plugins/MediaServer/MediaServerService/ProjectInstaller.resx trunk/plugins/MediaServer/MediaServerService/Properties/ trunk/plugins/MediaServer/MediaServerService/Properties/AssemblyInfo.cs trunk/plugins/MediaServer/MediaServerService/Server.cs trunk/plugins/MediaServer/MediaServerService/Service1.Designer.cs trunk/plugins/MediaServer/MediaServerService/bin/ trunk/plugins/MediaServer/MediaServerService/bin/Debug/ trunk/plugins/MediaServer/MediaServerService/bin/Release/ trunk/plugins/MediaServer/MediaServerService/obj/ trunk/plugins/MediaServer/MediaServerService/obj/Debug/ trunk/plugins/MediaServer/MediaServerService/obj/Debug/ResolveAssemblyReference.cache trunk/plugins/MediaServer/MediaServerService/obj/Debug/TempPE/ trunk/plugins/MediaServer/MediaServerService/obj/Release/ trunk/plugins/MediaServer/MediaServerService/obj/Release/ResolveAssemblyReference.cache trunk/plugins/MediaServer/MediaServerService/obj/Release/TempPE/ trunk/plugins/MediaServer/ServerTest/ trunk/plugins/MediaServer/ServerTest/Properties/ trunk/plugins/MediaServer/ServerTest/Properties/AssemblyInfo.cs trunk/plugins/MediaServer/ServerTest/ServerTest.cs trunk/plugins/MediaServer/ServerTest/ServerTest.csproj trunk/plugins/MediaServer/ServerTest/bin/ trunk/plugins/MediaServer/ServerTest/bin/Debug/ trunk/plugins/MediaServer/ServerTest/bin/Debug/ServerTest.vshost.exe trunk/plugins/MediaServer/ServerTest/bin/Debug/ServerTest.vshost.exe.manifest trunk/plugins/MediaServer/ServerTest/bin/Release/ trunk/plugins/MediaServer/ServerTest/bin/Release/ServerTest.vshost.exe trunk/plugins/MediaServer/ServerTest/bin/Release/ServerTest.vshost.exe.manifest trunk/plugins/MediaServer/ServerTest/obj/ trunk/plugins/MediaServer/ServerTest/obj/Debug/ trunk/plugins/MediaServer/ServerTest/obj/Debug/ResolveAssemblyReference.cache trunk/plugins/MediaServer/ServerTest/obj/Debug/TempPE/ trunk/plugins/MediaServer/ServerTest/obj/Release/ trunk/plugins/MediaServer/ServerTest/obj/Release/ResolveAssemblyReference.cache trunk/plugins/MediaServer/ServerTest/obj/Release/TempPE/ trunk/plugins/MediaServer/SetupMediaServerService/ trunk/plugins/MediaServer/SetupMediaServerService/Debug/ trunk/plugins/MediaServer/SetupMediaServerService/Release/ trunk/plugins/MediaServer/SetupMediaServerService/SetupMediaServerService.vdproj Added: trunk/plugins/MediaServer/MediaServer.sln =================================================================== --- trunk/plugins/MediaServer/MediaServer.sln (rev 0) +++ trunk/plugins/MediaServer/MediaServer.sln 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,42 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServerTest", "ServerTest\ServerTest.csproj", "{00437BD6-C1BF-4CC0-8D82-CE11BB4861A1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaServerService", "MediaServerService\MediaServerService.csproj", "{577FBB83-4D3D-439E-BB85-9912F11EFC50}" +EndProject +Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "SetupMediaServerService", "SetupMediaServerService\SetupMediaServerService.vdproj", "{012AC200-1334-4D51-9481-97388CA9DA12}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaServerConfiguration", "MediaServerConfiguration\MediaServerConfiguration.csproj", "{FF5B0AA2-49A1-4F1A-8209-C7F52AD1CA93}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MediaServerPlugin", "MediaServerPlugin\MediaServerPlugin.csproj", "{CCC78D26-D4EA-4259-ABEB-2550207E7944}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {00437BD6-C1BF-4CC0-8D82-CE11BB4861A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {00437BD6-C1BF-4CC0-8D82-CE11BB4861A1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {00437BD6-C1BF-4CC0-8D82-CE11BB4861A1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {00437BD6-C1BF-4CC0-8D82-CE11BB4861A1}.Release|Any CPU.Build.0 = Release|Any CPU + {577FBB83-4D3D-439E-BB85-9912F11EFC50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {577FBB83-4D3D-439E-BB85-9912F11EFC50}.Debug|Any CPU.Build.0 = Debug|Any CPU + {577FBB83-4D3D-439E-BB85-9912F11EFC50}.Release|Any CPU.ActiveCfg = Release|Any CPU + {577FBB83-4D3D-439E-BB85-9912F11EFC50}.Release|Any CPU.Build.0 = Release|Any CPU + {012AC200-1334-4D51-9481-97388CA9DA12}.Debug|Any CPU.ActiveCfg = Debug + {012AC200-1334-4D51-9481-97388CA9DA12}.Release|Any CPU.ActiveCfg = Release + {FF5B0AA2-49A1-4F1A-8209-C7F52AD1CA93}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FF5B0AA2-49A1-4F1A-8209-C7F52AD1CA93}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FF5B0AA2-49A1-4F1A-8209-C7F52AD1CA93}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FF5B0AA2-49A1-4F1A-8209-C7F52AD1CA93}.Release|Any CPU.Build.0 = Release|Any CPU + {CCC78D26-D4EA-4259-ABEB-2550207E7944}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CCC78D26-D4EA-4259-ABEB-2550207E7944}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CCC78D26-D4EA-4259-ABEB-2550207E7944}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CCC78D26-D4EA-4259-ABEB-2550207E7944}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.Designer.cs =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.Designer.cs (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.Designer.cs 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,117 @@ +namespace MediaServerConfiguration +{ + partial class AddShare + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.txtShareName = new System.Windows.Forms.TextBox(); + this.txtPath = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.btnCancel = new System.Windows.Forms.Button(); + this.btnOk = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 84); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(69, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Share Name:"; + // + // txtShareName + // + this.txtShareName.Location = new System.Drawing.Point(81, 81); + this.txtShareName.Name = "txtShareName"; + this.txtShareName.Size = new System.Drawing.Size(261, 20); + this.txtShareName.TabIndex = 1; + this.txtShareName.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + // + // txtPath + // + this.txtPath.Location = new System.Drawing.Point(81, 117); + this.txtPath.Name = "txtPath"; + this.txtPath.Size = new System.Drawing.Size(261, 20); + this.txtPath.TabIndex = 3; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 120); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(32, 13); + this.label2.TabIndex = 2; + this.label2.Text = "Path:"; + // + // btnCancel + // + this.btnCancel.Location = new System.Drawing.Point(267, 170); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); + this.btnCancel.TabIndex = 4; + this.btnCancel.Text = "Cancel"; + this.btnCancel.UseVisualStyleBackColor = true; + // + // btnOk + // + this.btnOk.Location = new System.Drawing.Point(177, 170); + this.btnOk.Name = "btnOk"; + this.btnOk.Size = new System.Drawing.Size(75, 23); + this.btnOk.TabIndex = 5; + this.btnOk.Text = "Ok"; + this.btnOk.UseVisualStyleBackColor = true; + // + // AddShare + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(359, 224); + this.Controls.Add(this.btnOk); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.txtPath); + this.Controls.Add(this.label2); + this.Controls.Add(this.txtShareName); + this.Controls.Add(this.label1); + this.Name = "AddShare"; + this.Text = "AddShare"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox txtShareName; + private System.Windows.Forms.TextBox txtPath; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button btnCancel; + private System.Windows.Forms.Button btnOk; + } +} \ No newline at end of file Added: trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.cs =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.cs (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.cs 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace MediaServerConfiguration +{ + public partial class AddShare : Form + { + public AddShare() + { + InitializeComponent(); + } + + private void textBox1_TextChanged(object sender, EventArgs e) + { + + } + } +} Added: trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.resx =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.resx (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/AddShare.resx 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file Added: trunk/plugins/MediaServer/MediaServerConfiguration/Main.Designer.cs =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/Main.Designer.cs (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/Main.Designer.cs 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,288 @@ +namespace MediaServerConfiguration +{ + partial class u + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.btnShare = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.txtShareName = new System.Windows.Forms.TextBox(); + this.txtInput = new System.Windows.Forms.TextBox(); + this.btnFind = new System.Windows.Forms.Button(); + this.fidFind = new System.Windows.Forms.FolderBrowserDialog(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.txtLabel = new System.Windows.Forms.TextBox(); + this.btnSetNmaeMovies = new System.Windows.Forms.Button(); + this.btnUnshare = new System.Windows.Forms.Button(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.tbMedia = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.lstMovies = new System.Windows.Forms.ListView(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.lstMusic = new System.Windows.Forms.ListView(); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.lstPictures = new System.Windows.Forms.ListView(); + this.groupBox1.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.tbMedia.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.tabPage3.SuspendLayout(); + this.SuspendLayout(); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.btnShare); + this.groupBox1.Controls.Add(this.label1); + this.groupBox1.Controls.Add(this.txtShareName); + this.groupBox1.Controls.Add(this.txtInput); + this.groupBox1.Controls.Add(this.btnFind); + this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top; + this.groupBox1.Location = new System.Drawing.Point(0, 0); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(593, 66); + this.groupBox1.TabIndex = 3; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Create New Share"; + // + // btnShare + // + this.btnShare.Location = new System.Drawing.Point(406, 22); + this.btnShare.Name = "btnShare"; + this.btnShare.Size = new System.Drawing.Size(61, 23); + this.btnShare.TabIndex = 9; + this.btnShare.Text = "Share"; + this.btnShare.UseVisualStyleBackColor = true; + this.btnShare.Click += new System.EventHandler(this.btnShare_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(212, 25); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(69, 13); + this.label1.TabIndex = 8; + this.label1.Text = "Share Name:"; + // + // txtShareName + // + this.txtShareName.Location = new System.Drawing.Point(287, 22); + this.txtShareName.Name = "txtShareName"; + this.txtShareName.Size = new System.Drawing.Size(101, 20); + this.txtShareName.TabIndex = 7; + // + // txtInput + // + this.txtInput.Location = new System.Drawing.Point(39, 22); + this.txtInput.Name = "txtInput"; + this.txtInput.Size = new System.Drawing.Size(167, 20); + this.txtInput.TabIndex = 6; + // + // btnFind + // + this.btnFind.Location = new System.Drawing.Point(9, 22); + this.btnFind.Name = "btnFind"; + this.btnFind.Size = new System.Drawing.Size(24, 20); + this.btnFind.TabIndex = 5; + this.btnFind.Text = "..."; + this.btnFind.UseVisualStyleBackColor = true; + this.btnFind.Click += new System.EventHandler(this.btnFind_Click); + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.txtLabel); + this.groupBox2.Controls.Add(this.btnSetNmaeMovies); + this.groupBox2.Controls.Add(this.btnUnshare); + this.groupBox2.Dock = System.Windows.Forms.DockStyle.Bottom; + this.groupBox2.Location = new System.Drawing.Point(0, 396); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(593, 60); + this.groupBox2.TabIndex = 15; + this.groupBox2.TabStop = false; + // + // txtLabel + // + this.txtLabel.Location = new System.Drawing.Point(89, 21); + this.txtLabel.Name = "txtLabel"; + this.txtLabel.Size = new System.Drawing.Size(191, 20); + this.txtLabel.TabIndex = 16; + // + // btnSetNmaeMovies + // + this.btnSetNmaeMovies.Location = new System.Drawing.Point(9, 19); + this.btnSetNmaeMovies.Name = "btnSetNmaeMovies"; + this.btnSetNmaeMovies.Size = new System.Drawing.Size(74, 23); + this.btnSetNmaeMovies.TabIndex = 17; + this.btnSetNmaeMovies.Text = "Set Name"; + this.btnSetNmaeMovies.UseVisualStyleBackColor = true; + this.btnSetNmaeMovies.Click += new System.EventHandler(this.btnSetNmaeMovies_Click); + // + // btnUnshare + // + this.btnUnshare.Location = new System.Drawing.Point(319, 19); + this.btnUnshare.Name = "btnUnshare"; + this.btnUnshare.Size = new System.Drawing.Size(87, 23); + this.btnUnshare.TabIndex = 15; + this.btnUnshare.Text = "Remove Share"; + this.btnUnshare.UseVisualStyleBackColor = true; + this.btnUnshare.Click += new System.EventHandler(this.btnUnshare_Click); + // + // groupBox3 + // + this.groupBox3.Controls.Add(this.tbMedia); + this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox3.Location = new System.Drawing.Point(0, 66); + this.groupBox3.Name = "groupBox3"; + this.groupBox3.Size = new System.Drawing.Size(593, 330); + this.groupBox3.TabIndex = 16; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "Shares"; + // + // tbMedia + // + this.tbMedia.Controls.Add(this.tabPage1); + this.tbMedia.Controls.Add(this.tabPage2); + this.tbMedia.Controls.Add(this.tabPage3); + this.tbMedia.Dock = System.Windows.Forms.DockStyle.Fill; + this.tbMedia.Location = new System.Drawing.Point(3, 16); + this.tbMedia.Name = "tbMedia"; + this.tbMedia.SelectedIndex = 0; + this.tbMedia.Size = new System.Drawing.Size(587, 311); + this.tbMedia.TabIndex = 5; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.lstMovies); + this.tabPage1.Location = new System.Drawing.Point(4, 22); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(579, 285); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "Movies"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // lstMovies + // + this.lstMovies.Dock = System.Windows.Forms.DockStyle.Fill; + this.lstMovies.Location = new System.Drawing.Point(3, 3); + this.lstMovies.Name = "lstMovies"; + this.lstMovies.Size = new System.Drawing.Size(573, 279); + this.lstMovies.TabIndex = 1; + this.lstMovies.UseCompatibleStateImageBehavior = false; + this.lstMovies.SelectedIndexChanged += new System.EventHandler(this.lstMovies_SelectedIndexChanged); + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.lstMusic); + this.tabPage2.Location = new System.Drawing.Point(4, 22); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(579, 285); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "Music"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // lstMusic + // + this.lstMusic.Dock = System.Windows.Forms.DockStyle.Fill; + this.lstMusic.Location = new System.Drawing.Point(3, 3); + this.lstMusic.Name = "lstMusic"; + this.lstMusic.Size = new System.Drawing.Size(573, 279); + this.lstMusic.TabIndex = 2; + this.lstMusic.UseCompatibleStateImageBehavior = false; + this.lstMusic.SelectedIndexChanged += new System.EventHandler(this.lstMusic_SelectedIndexChanged); + // + // tabPage3 + // + this.tabPage3.Controls.Add(this.lstPictures); + this.tabPage3.Location = new System.Drawing.Point(4, 22); + this.tabPage3.Name = "tabPage3"; + this.tabPage3.Size = new System.Drawing.Size(579, 285); + this.tabPage3.TabIndex = 2; + this.tabPage3.Text = "Pictures"; + this.tabPage3.UseVisualStyleBackColor = true; + // + // lstPictures + // + this.lstPictures.Dock = System.Windows.Forms.DockStyle.Fill; + this.lstPictures.Location = new System.Drawing.Point(0, 0); + this.lstPictures.Name = "lstPictures"; + this.lstPictures.Size = new System.Drawing.Size(579, 285); + this.lstPictures.TabIndex = 2; + this.lstPictures.UseCompatibleStateImageBehavior = false; + this.lstPictures.SelectedIndexChanged += new System.EventHandler(this.lstPictures_SelectedIndexChanged); + // + // u + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(593, 456); + this.Controls.Add(this.groupBox3); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.Name = "u"; + this.Text = "Media Server Configuration"; + this.Load += new System.EventHandler(this.Main_Load); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + this.groupBox3.ResumeLayout(false); + this.tbMedia.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.tabPage2.ResumeLayout(false); + this.tabPage3.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Button btnShare; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox txtShareName; + private System.Windows.Forms.TextBox txtInput; + private System.Windows.Forms.Button btnFind; + private System.Windows.Forms.FolderBrowserDialog fidFind; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.TextBox txtLabel; + private System.Windows.Forms.Button btnSetNmaeMovies; + private System.Windows.Forms.Button btnUnshare; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.TabControl tbMedia; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.ListView lstMovies; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.ListView lstMusic; + private System.Windows.Forms.TabPage tabPage3; + private System.Windows.Forms.ListView lstPictures; + } +} + Added: trunk/plugins/MediaServer/MediaServerConfiguration/Main.cs =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/Main.cs (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/Main.cs 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,253 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using MediaPortal.GUI.Library; +using MediaPortal.Util; +using MediaPortal.Configuration; +using System.Management; +using System.IO; +using System.Net; + +using System.Collections; + +namespace MediaServerConfiguration +{ + public partial class u : Form + { + private enum TYPE + { + movies = 0, + music = 1, + pictures = 2 + } + + public u() + { + InitializeComponent(); + buildLst(lstMovies); + buildLst(lstMusic); + buildLst(lstPictures); + + + } + + private void buildLst(ListView lst) + { + lst.View = View.Details; + lst.FullRowSelect = true; + lst.HideSelection = false; + lst.Columns.Add("Share"); + lst.Columns.Add("Name"); + lst.Columns.Add("Path"); + lst.Columns[0].Width = 100; + lst.Columns[1].Width = 100; + lst.Columns[2].Width = 300; + } + + private void Main_Load(object sender, EventArgs e) + { + reloadLists(); + } + + private void btnFind_Click(object sender, EventArgs e) + { + fidFind.ShowDialog(); + if (fidFind.SelectedPath != null) + { + + txtInput.Text = fidFind.SelectedPath; + } + } + + private void btnShare_Click(object sender, EventArgs e) + { + if (!SharingUtil.shareFolder(txtInput.Text, txtShareName.Text)) + { + MessageBox.Show("Unable to share directory", "Share Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + else + { + reloadLists(); + } + + } + + private void btnUnshare_Click(object sender, EventArgs e) + { + + unshare(TYPE.movies); + unshare(TYPE.music); + unshare(TYPE.pictures); + reloadLists(); + + } + + private ListView getListView(TYPE type) + { + ListView lst = null; + switch (type) + { + case TYPE.movies: + { + lst = lstMovies; + break; + } + case TYPE.music: + { + lst = lstMusic; + break; + } + case TYPE.pictures: + { + lst = lstPictures; + break; + } + } + return lst; + } + + private void unshare(TYPE type) + { + ListView lst = getListView(type); + foreach (ListViewItem item in lst.SelectedItems) + { + if (!SharingUtil.unShareFolder(item.Text)) + { + MessageBox.Show("Unable to remove share directory", "Share Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + SettingsUtil.SaveShare(getVirtualShares(type), type.ToString()); + } + + private void reloadLists() + { + reloadList(TYPE.movies); + reloadList(TYPE.music); + reloadList(TYPE.pictures); + } + + private void reloadList(TYPE type) + { + ListView lst = getListView(type); + lst.Items.Clear(); + ManagementObjectCollection shares = SharingUtil.getShares(); + VirtualDirectory vd = new VirtualDirectory(); + vd.LoadSettings(type.ToString()); + + foreach (ManagementObject share in shares) + { + if (SharingUtil.getShareType(share) == 0) + { + String shareName = SharingUtil.getSahreName(share); + + ListViewItem lvi = new ListViewItem(); + lvi.Text = shareName; + lst.Items.Add(lvi); + + + Share virtualShare = vd.GetShare("\\\\127.0.0.1\\" + shareName); + + if (virtualShare != null && virtualShare.Path.Equals("\\\\127.0.0.1\\" + shareName)) + { + lvi.SubItems.Add(virtualShare.Name); + } + else + { + lvi.SubItems.Add(""); + } + + lvi.SubItems.Add(SharingUtil.getSahrePath(share)); + } + } + } + + private ArrayList getVirtualShares(TYPE type) + { + ArrayList ret = new ArrayList(); + ListView lst = getListView(type); + foreach (ListViewItem item in lst.Items) + { + String shareName = item.SubItems[1].Text; + if (shareName != null && !shareName.Equals("")) + { + Share virtualShare = new Share(shareName, "\\\\127.0.0.1\\" + item.Text); + ret.Add(virtualShare); + } + } + return ret; + + } + + + private void lstMovies_SelectedIndexChanged(object sender, EventArgs e) + { + selectionChanged(TYPE.movies); + } + + private void selectionChanged(TYPE type) + { + ListView lst = getListView(type); + if (lst.SelectedItems.Count != 1) + { + txtLabel.Text = ""; + } + else + { + txtLabel.Text = lst.SelectedItems[0].SubItems[1].Text; + } + } + + private void btnSetNmaeMovies_Click(object sender, EventArgs e) + { + switch (tbMedia.SelectedIndex) + { + case 0: + { + setName(TYPE.movies); + break; + } + case 1: + { + setName(TYPE.music); + break; + } + case 2: + { + setName(TYPE.pictures); + break; + } + } + } + + private void setName(TYPE type) + { + ListView lst = getListView(type); + + if (lst.SelectedItems.Count != 1) return; + lst.SelectedItems[0].SubItems[1].Text = txtLabel.Text; + + int selecetd = lst.SelectedIndices[0]; + + SettingsUtil.SaveShare(getVirtualShares(type), type.ToString()); + reloadLists(); + + lst.SelectedIndices.Add(selecetd); + } + + private void lstMusic_SelectedIndexChanged(object sender, EventArgs e) + { + selectionChanged(TYPE.music); + } + + private void lstPictures_SelectedIndexChanged(object sender, EventArgs e) + { + selectionChanged(TYPE.pictures); + } + + } +} Added: trunk/plugins/MediaServer/MediaServerConfiguration/Main.resx =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/Main.resx (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/Main.resx 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <metadata name="fidFind.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file Added: trunk/plugins/MediaServer/MediaServerConfiguration/MediaServerConfiguration.csproj =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/MediaServerConfiguration.csproj (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/MediaServerConfiguration.csproj 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.21022</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{FF5B0AA2-49A1-4F1A-8209-C7F52AD1CA93}</ProjectGuid> + <OutputType>WinExe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>MediaServerConfiguration</RootNamespace> + <AssemblyName>MediaServerConfiguration</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="Core, Version=0.2.3.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\mp\mediaportal\xbmc\bin\Release\Core.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Management" /> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data" /> + <Reference Include="System.Deployment" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + <Reference Include="Utils, Version=2.2.4.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>D:\mp\mediaportal\xbmc\bin\Release\Utils.dll</HintPath> + </Reference> + </ItemGroup> + <ItemGroup> + <Compile Include="AddShare.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="AddShare.Designer.cs"> + <DependentUpon>AddShare.cs</DependentUpon> + </Compile> + <Compile Include="Main.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="Main.Designer.cs"> + <DependentUpon>Main.cs</DependentUpon> + </Compile> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <EmbeddedResource Include="AddShare.resx"> + <DependentUpon>AddShare.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + <EmbeddedResource Include="Main.resx"> + <DependentUpon>Main.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + <EmbeddedResource Include="Properties\Resources.resx"> + <Generator>ResXFileCodeGenerator</Generator> + <LastGenOutput>Resources.Designer.cs</LastGenOutput> + <SubType>Designer</SubType> + </EmbeddedResource> + <EmbeddedResource Include="Test.resx"> + <DependentUpon>Test.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> + <Compile Include="Properties\Resources.Designer.cs"> + <AutoGen>True</AutoGen> + <DependentUpon>Resources.resx</DependentUpon> + </Compile> + <None Include="Properties\Settings.settings"> + <Generator>SettingsSingleFileGenerator</Generator> + <LastGenOutput>Settings.Designer.cs</LastGenOutput> + </None> + <Compile Include="Properties\Settings.Designer.cs"> + <AutoGen>True</AutoGen> + <DependentUpon>Settings.settings</DependentUpon> + <DesignTimeSharedInput>True</DesignTimeSharedInput> + </Compile> + <Compile Include="SettingsUtil.cs" /> + <Compile Include="SharingUtil.cs" /> + <Compile Include="Test.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="Test.Designer.cs"> + <DependentUpon>Test.cs</DependentUpon> + </Compile> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project> \ No newline at end of file Added: trunk/plugins/MediaServer/MediaServerConfiguration/MediaServerConfiguration.csproj.user =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/MediaServerConfiguration.csproj.user (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/MediaServerConfiguration.csproj.user 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,5 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <ProjectView>ProjectFiles</ProjectView> + </PropertyGroup> +</Project> \ No newline at end of file Added: trunk/plugins/MediaServer/MediaServerConfiguration/Program.cs =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/Program.cs (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/Program.cs 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace MediaServerConfiguration +{ + static class Program + { + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new u()); + } + } +} Added: trunk/plugins/MediaServer/MediaServerConfiguration/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/Properties/AssemblyInfo.cs 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("MediaServerConfiguration")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Cisco Systems, Inc.")] +[assembly: AssemblyProduct("MediaServerConfiguration")] +[assembly: AssemblyCopyright("Copyright © Cisco Systems, Inc. 2008")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("66f1e3e8-3117-4b3b-a0e7-611d0b43854e")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Added: trunk/plugins/MediaServer/MediaServerConfiguration/Properties/Resources.Designer.cs =================================================================== --- trunk/plugins/MediaServer/MediaServerConfiguration/Properties/Resources.Designer.cs (rev 0) +++ trunk/plugins/MediaServer/MediaServerConfiguration/Properties/Resources.Designer.cs 2008-01-19 22:34:08 UTC (rev 1284) @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:2.0.50727.1433 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace MediaServerConfiguration.Properties +{ + + + /// <summary> + /// A strongly-typed resource class, for looking up localized strings, etc. + /// </summary> + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUnca... [truncated message content] |