|
From: <du...@us...> - 2007-01-31 22:14:08
|
Revision: 68
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=68&view=rev
Author: dukus
Date: 2007-01-31 14:14:04 -0800 (Wed, 31 Jan 2007)
Log Message:
-----------
Added Paths:
-----------
trunk/plugins/mpinstaler/
trunk/plugins/mpinstaler/MPInstaler/
trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs
trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx
trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/Form1.cs
trunk/plugins/mpinstaler/MPInstaler/Form1.resx
trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/Form2.cs
trunk/plugins/mpinstaler/MPInstaler/Form2.resx
trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj
trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj.user
trunk/plugins/mpinstaler/MPInstaler/MPInstaler_TemporaryKey.pfx
trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs
trunk/plugins/mpinstaler/MPInstaler/OptionForm.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/OptionForm.cs
trunk/plugins/mpinstaler/MPInstaler/OptionForm.resx
trunk/plugins/mpinstaler/MPInstaler/Program.cs
trunk/plugins/mpinstaler/MPInstaler/Properties/
trunk/plugins/mpinstaler/MPInstaler/Properties/AssemblyInfo.cs
trunk/plugins/mpinstaler/MPInstaler/Properties/Resources.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/Properties/Resources.resx
trunk/plugins/mpinstaler/MPInstaler/Properties/Settings.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/Properties/Settings.settings
trunk/plugins/mpinstaler/MPInstaler/Properties/app.manifest
trunk/plugins/mpinstaler/MPInstaler/SkinSelect.Designer.cs
trunk/plugins/mpinstaler/MPInstaler/SkinSelect.cs
trunk/plugins/mpinstaler/MPInstaler/SkinSelect.resx
trunk/plugins/mpinstaler/MPInstaler/bin/
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/ICSharpCode.SharpZipLib.dll
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.application
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.exe
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.exe.manifest
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.pdb
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.application
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.exe
trunk/plugins/mpinstaler/MPInstaler/bin/Debug/MPInstaler.vshost.exe.manifest
trunk/plugins/mpinstaler/MPInstaler/bin/Release/
trunk/plugins/mpinstaler/MPInstaler/bin/Release/ICSharpCode.SharpZipLib.dll
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.application
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.exe
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.exe.manifest
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.pdb
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler.application
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/AxInterop.WMPLib.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Core.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Databases.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Dialogs.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/DirectShowLib.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/ICSharpCode.SharpZipLib.DLL.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Interop.WMPLib.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/MPInstaler.exe.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/MPInstaler.exe.manifest
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/MediaPortal.Support.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/Utils.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/MPInstaler_1_0_0_0/edtftpnet-1.2.2.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/bin/Release/MPInstaler.publish/setup.exe
trunk/plugins/mpinstaler/MPInstaler/bin/Release/q
trunk/plugins/mpinstaler/MPInstaler/obj/
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Build_dialog.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Form1.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Form2.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.OptionForm.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.Properties.Resources.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.SkinSelect.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.TrustInfo.xml
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.application
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.csproj.GenerateResource.Cache
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.exe
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.exe.manifest
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/MPInstaler.pdb
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/ResolveAssemblyReference.cache
trunk/plugins/mpinstaler/MPInstaler/obj/Debug/TempPE/
trunk/plugins/mpinstaler/MPInstaler/obj/MPInstaler.csproj.FileList.txt
trunk/plugins/mpinstaler/MPInstaler/obj/Release/
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Build_dialog.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Form1.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Form2.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.OptionForm.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.Properties.Resources.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.SkinSelect.resources
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.TrustInfo.xml
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.application
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.csproj.GenerateResource.Cache
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.exe
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.exe.manifest
trunk/plugins/mpinstaler/MPInstaler/obj/Release/MPInstaler.pdb
trunk/plugins/mpinstaler/MPInstaler/obj/Release/Refactor/
trunk/plugins/mpinstaler/MPInstaler/obj/Release/ResolveAssemblyReference.cache
trunk/plugins/mpinstaler/MPInstaler/obj/Release/TempPE/
trunk/plugins/mpinstaler/MPInstaler/publish/
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler.application
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/AxInterop.WMPLib.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Core.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Databases.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Dialogs.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/DirectShowLib.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/ICSharpCode.SharpZipLib.DLL.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Interop.WMPLib.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MPInstaler.exe.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MPInstaler.exe.manifest
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/MediaPortal.Support.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/Utils.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0/edtftpnet-1.2.2.dll.deploy
trunk/plugins/mpinstaler/MPInstaler/publish/MPInstaler_1_0_0_0.application
trunk/plugins/mpinstaler/MPInstaler/publish/setup.exe
trunk/plugins/mpinstaler/MPInstaler.sln
trunk/plugins/mpinstaler/MPInstaler.suo
Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs (rev 0)
+++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.Designer.cs 2007-01-31 22:14:04 UTC (rev 68)
@@ -0,0 +1,118 @@
+namespace MPInstaler
+{
+ partial class Build_dialog
+ {
+ /// <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.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.button3 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // saveFileDialog1
+ //
+ this.saveFileDialog1.DefaultExt = "mpi";
+ this.saveFileDialog1.Filter = "MPI files|*.mpi|ZIP files|*.zip|All files|*.*";
+ //
+ // textBox1
+ //
+ this.textBox1.Location = new System.Drawing.Point(12, 23);
+ this.textBox1.Name = "textBox1";
+ this.textBox1.Size = new System.Drawing.Size(484, 20);
+ this.textBox1.TabIndex = 0;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(9, 7);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(58, 13);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "File name :";
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(502, 23);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(27, 23);
+ this.button1.TabIndex = 2;
+ this.button1.Text = "...";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(12, 136);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(75, 23);
+ this.button2.TabIndex = 3;
+ this.button2.Text = "Build";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
+ // button3
+ //
+ this.button3.Location = new System.Drawing.Point(421, 136);
+ this.button3.Name = "button3";
+ this.button3.Size = new System.Drawing.Size(75, 23);
+ this.button3.TabIndex = 4;
+ this.button3.Text = "OK";
+ this.button3.UseVisualStyleBackColor = true;
+ this.button3.Click += new System.EventHandler(this.button3_Click);
+ //
+ // Build_dialog
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(537, 171);
+ this.Controls.Add(this.button3);
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.textBox1);
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "Build_dialog";
+ this.Text = "Build";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.SaveFileDialog saveFileDialog1;
+ private System.Windows.Forms.TextBox textBox1;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ private System.Windows.Forms.Button button3;
+ }
+}
\ No newline at end of file
Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs (rev 0)
+++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.cs 2007-01-31 22:14:04 UTC (rev 68)
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace MPInstaler
+{
+ public partial class Build_dialog : Form
+ {
+ public MPinstalerStruct _struct = new MPinstalerStruct();
+ public Build_dialog()
+ {
+ InitializeComponent();
+ }
+ public Build_dialog(MPinstalerStruct st)
+ {
+ _struct = st;
+ InitializeComponent();
+ textBox1.Text = _struct.BuildFileName;
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ if (saveFileDialog1.ShowDialog(this) == DialogResult.OK)
+ {
+ textBox1.Text = saveFileDialog1.FileName;
+ }
+
+ }
+
+ private void button3_Click(object sender, EventArgs e)
+ {
+ _struct.BuildFileName = textBox1.Text;
+ this.Hide();
+ }
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+ _struct.BuildFileName = textBox1.Text;
+ _struct.BuilFile();
+ }
+ public void onbuild()
+ {
+
+ }
+ }
+}
\ No newline at end of file
Added: trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx (rev 0)
+++ trunk/plugins/mpinstaler/MPInstaler/Build dialog.resx 2007-01-31 22:14:04 UTC (rev 68)
@@ -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="saveFileDialog1.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/mpinstaler/MPInstaler/Form1.Designer.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs (rev 0)
+++ trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-01-31 22:14:04 UTC (rev 68)
@@ -0,0 +1,380 @@
+namespace MPInstaler
+{
+ partial class Form1
+ {
+ /// <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.components = new System.ComponentModel.Container();
+ this.menuStrip1 = new System.Windows.Forms.MenuStrip();
+ this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.openProiectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.sToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.saveProiectAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.buildToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
+ this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
+ this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.windowPluginToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.windowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.procesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.subtitleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.tagReadersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.externalPlayersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.skinToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.componentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.mediaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.fullToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.languageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.bossview = new System.Windows.Forms.ListView();
+ this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
+ this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
+ this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
+ this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
+ this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
+ this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.toolStripComboBox1 = new System.Windows.Forms.ToolStripMenuItem();
+ this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
+ this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.menuStrip1.SuspendLayout();
+ this.contextMenuStrip1.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // menuStrip1
+ //
+ this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.fileToolStripMenuItem,
+ this.addToolStripMenuItem});
+ this.menuStrip1.Location = new System.Drawing.Point(0, 0);
+ this.menuStrip1.Name = "menuStrip1";
+ this.menuStrip1.Size = new System.Drawing.Size(675, 24);
+ this.menuStrip1.TabIndex = 1;
+ this.menuStrip1.Text = "menuStrip1";
+ //
+ // fileToolStripMenuItem
+ //
+ this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.newToolStripMenuItem,
+ this.openProiectToolStripMenuItem,
+ this.sToolStripMenuItem,
+ this.saveProiectAsToolStripMenuItem,
+ this.buildToolStripMenuItem,
+ this.toolStripSeparator1,
+ this.optionsToolStripMenuItem,
+ this.toolStripSeparator2,
+ this.exitToolStripMenuItem});
+ this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
+ this.fileToolStripMenuItem.Size = new System.Drawing.Size(35, 20);
+ this.fileToolStripMenuItem.Text = "File";
+ //
+ // newToolStripMenuItem
+ //
+ this.newToolStripMenuItem.Name = "newToolStripMenuItem";
+ this.newToolStripMenuItem.Size = new System.Drawing.Size(168, 22);
+ this.newToolStripMenuItem.Text = "New Proiect";
+ this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
+ //
+ // openProiectToolStripMenuItem
+ //
+ this.openProiectToolStripMenuItem.Name = "openProiectToolStripMenuItem";
+ this.openProiectToolStripMenuItem.Size = new System.Drawing.Size(168, 22);
+ this.openProiectToolStripMenuItem.Text = "Open Proiect ..";
+ this.openProiectToolStripMenuItem.Click += new System.EventHandler(this.openProiectToolStripMenuItem_Click);
+ //
+ // sToolStripMenuItem
+ //
+ this.sToolStripMenuItem.Name = "sToolStripMenuItem";
+ this.sToolStripMenuItem.Size = new System.Drawing.Size(168, 22);
+ this.sToolStripMenuItem.Text = "Save Proiect";
+ this.sToolStripMenuItem.Click += new System.EventHandler(this.sToolStripMenuItem_Click);
+ //
+ // saveProiectAsToolStripMenuItem
+ //
+ this.saveProiectAsToolStripMenuItem.Name = "saveProiectAsToolStripMenuItem";
+ this.saveProiectAsToolStripMenuItem.Size = new System.Drawing.Size(168, 22);
+ this.saveProiectAsToolStripMenuItem.Text = "Save Proiect As..";
+ //
+ // buildToolStripMenuItem
+ //
+ this.buildToolStripMenuItem.Name = "buildToolStripMenuItem";
+ this.buildToolStripMenuItem.Size = new System.Drawing.Size(168, 22);
+ this.buildToolStripMenuItem.Text = "Build";
+ this.buildToolStripMenuItem.Click += new System.EventHandler(this.buildToolStripMenuItem_Click);
+ //
+ // toolStripSeparator1
+ //
+ this.toolStripSeparator1.Name = "toolStripSeparator1";
+ this.toolStripSeparator1.Size = new System.Drawing.Size(165, 6);
+ //
+ // optionsToolStripMenuItem
+ //
+ this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
+ this.optionsToolStripMenuItem.Size = new System.Drawing.Size(168, 22);
+ this.optionsToolStripMenuItem.Text = "Options";
+ this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click);
+ //
+ // toolStripSeparator2
+ //
+ this.toolStripSeparator2.Name = "toolStripSeparator2";
+ this.toolStripSeparator2.Size = new System.Drawing.Size(165, 6);
+ //
+ // exitToolStripMenuItem
+ //
+ this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
+ this.exitToolStripMenuItem.Size = new System.Drawing.Size(168, 22);
+ this.exitToolStripMenuItem.Text = "Exit";
+ //
+ // addToolStripMenuItem
+ //
+ this.addToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.windowPluginToolStripMenuItem,
+ this.skinToolStripMenuItem,
+ this.languageToolStripMenuItem});
+ this.addToolStripMenuItem.Name = "addToolStripMenuItem";
+ this.addToolStripMenuItem.Size = new System.Drawing.Size(38, 20);
+ this.addToolStripMenuItem.Text = "Add";
+ //
+ // windowPluginToolStripMenuItem
+ //
+ this.windowPluginToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.windowToolStripMenuItem,
+ this.procesToolStripMenuItem,
+ this.subtitleToolStripMenuItem,
+ this.tagReadersToolStripMenuItem,
+ this.externalPlayersToolStripMenuItem});
+ this.windowPluginToolStripMenuItem.Name = "windowPluginToolStripMenuItem";
+ this.windowPluginToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
+ this.windowPluginToolStripMenuItem.Text = "Plugin";
+ //
+ // windowToolStripMenuItem
+ //
+ this.windowToolStripMenuItem.Name = "windowToolStripMenuItem";
+ this.windowToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
+ this.windowToolStripMenuItem.Text = "Window";
+ this.windowToolStripMenuItem.Click += new System.EventHandler(this.windowToolStripMenuItem_Click);
+ //
+ // procesToolStripMenuItem
+ //
+ this.procesToolStripMenuItem.Name = "procesToolStripMenuItem";
+ this.procesToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
+ this.procesToolStripMenuItem.Text = "Process";
+ this.procesToolStripMenuItem.Click += new System.EventHandler(this.procesToolStripMenuItem_Click);
+ //
+ // subtitleToolStripMenuItem
+ //
+ this.subtitleToolStripMenuItem.Name = "subtitleToolStripMenuItem";
+ this.subtitleToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
+ this.subtitleToolStripMenuItem.Text = "Subtitle";
+ this.subtitleToolStripMenuItem.Click += new System.EventHandler(this.subtitleToolStripMenuItem_Click);
+ //
+ // tagReadersToolStripMenuItem
+ //
+ this.tagReadersToolStripMenuItem.Name = "tagReadersToolStripMenuItem";
+ this.tagReadersToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
+ this.tagReadersToolStripMenuItem.Text = "TagReaders";
+ this.tagReadersToolStripMenuItem.Click += new System.EventHandler(this.tagReadersToolStripMenuItem_Click);
+ //
+ // externalPlayersToolStripMenuItem
+ //
+ this.externalPlayersToolStripMenuItem.Name = "externalPlayersToolStripMenuItem";
+ this.externalPlayersToolStripMenuItem.Size = new System.Drawing.Size(160, 22);
+ this.externalPlayersToolStripMenuItem.Text = "ExternalPlayers";
+ this.externalPlayersToolStripMenuItem.Click += new System.EventHandler(this.externalPlayersToolStripMenuItem_Click);
+ //
+ // skinToolStripMenuItem
+ //
+ this.skinToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.componentToolStripMenuItem,
+ this.mediaToolStripMenuItem,
+ this.fullToolStripMenuItem});
+ this.skinToolStripMenuItem.Name = "skinToolStripMenuItem";
+ this.skinToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
+ this.skinToolStripMenuItem.Text = "Skin";
+ //
+ // componentToolStripMenuItem
+ //
+ this.componentToolStripMenuItem.Name = "componentToolStripMenuItem";
+ this.componentToolStripMenuItem.Size = new System.Drawing.Size(140, 22);
+ this.componentToolStripMenuItem.Text = "Component";
+ this.componentToolStripMenuItem.Click += new System.EventHandler(this.componentToolStripMenuItem_Click);
+ //
+ // mediaToolStripMenuItem
+ //
+ this.mediaToolStripMenuItem.Name = "mediaToolStripMenuItem";
+ this.mediaToolStripMenuItem.Size = new System.Drawing.Size(140, 22);
+ this.mediaToolStripMenuItem.Text = "Media";
+ this.mediaToolStripMenuItem.Click += new System.EventHandler(this.mediaToolStripMenuItem_Click);
+ //
+ // fullToolStripMenuItem
+ //
+ this.fullToolStripMenuItem.Name = "fullToolStripMenuItem";
+ this.fullToolStripMenuItem.Size = new System.Drawing.Size(140, 22);
+ this.fullToolStripMenuItem.Text = "Full";
+ this.fullToolStripMenuItem.Visible = false;
+ //
+ // languageToolStripMenuItem
+ //
+ this.languageToolStripMenuItem.Name = "languageToolStripMenuItem";
+ this.languageToolStripMenuItem.Size = new System.Drawing.Size(132, 22);
+ this.languageToolStripMenuItem.Text = "Language";
+ this.languageToolStripMenuItem.Click += new System.EventHandler(this.languageToolStripMenuItem_Click);
+ //
+ // bossview
+ //
+ this.bossview.CheckBoxes = true;
+ this.bossview.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
+ this.columnHeader1,
+ this.columnHeader2,
+ this.columnHeader3,
+ this.columnHeader4,
+ this.columnHeader5});
+ this.bossview.ContextMenuStrip = this.contextMenuStrip1;
+ this.bossview.FullRowSelect = true;
+ this.bossview.GridLines = true;
+ this.bossview.Location = new System.Drawing.Point(12, 40);
+ this.bossview.Name = "bossview";
+ this.bossview.Size = new System.Drawing.Size(663, 267);
+ this.bossview.TabIndex = 2;
+ this.bossview.UseCompatibleStateImageBehavior = false;
+ this.bossview.View = System.Windows.Forms.View.Details;
+ //
+ // columnHeader1
+ //
+ this.columnHeader1.Text = "File";
+ this.columnHeader1.Width = 116;
+ //
+ // columnHeader2
+ //
+ this.columnHeader2.Text = "Type";
+ this.columnHeader2.Width = 115;
+ //
+ // columnHeader3
+ //
+ this.columnHeader3.Text = "Subtype";
+ this.columnHeader3.Width = 108;
+ //
+ // columnHeader4
+ //
+ this.columnHeader4.Text = "Path";
+ this.columnHeader4.Width = 170;
+ //
+ // columnHeader5
+ //
+ this.columnHeader5.Text = "Id";
+ //
+ // contextMenuStrip1
+ //
+ this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.toolStripComboBox1});
+ this.contextMenuStrip1.Name = "contextMenuStrip1";
+ this.contextMenuStrip1.Size = new System.Drawing.Size(153, 48);
+ //
+ // toolStripComboBox1
+ //
+ this.toolStripComboBox1.Name = "toolStripComboBox1";
+ this.toolStripComboBox1.Size = new System.Drawing.Size(152, 22);
+ this.toolStripComboBox1.Text = "Remove";
+ this.toolStripComboBox1.Click += new System.EventHandler(this.toolStripComboBox1_Click);
+ //
+ // openFileDialog1
+ //
+ this.openFileDialog1.Filter = "\"Dll files|*.dll|All files|*.*\"";
+ //
+ // saveFileDialog1
+ //
+ this.saveFileDialog1.DefaultExt = "xml";
+ //
+ // groupBox1
+ //
+ this.groupBox1.Location = new System.Drawing.Point(213, 322);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(450, 97);
+ this.groupBox1.TabIndex = 3;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "Properties";
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(675, 431);
+ this.Controls.Add(this.bossview);
+ this.Controls.Add(this.groupBox1);
+ this.Controls.Add(this.menuStrip1);
+ this.MainMenuStrip = this.menuStrip1;
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.menuStrip1.ResumeLayout(false);
+ this.menuStrip1.PerformLayout();
+ this.contextMenuStrip1.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.MenuStrip menuStrip1;
+ private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
+ private System.Windows.Forms.ListView bossview;
+ private System.Windows.Forms.ColumnHeader columnHeader1;
+ private System.Windows.Forms.ColumnHeader columnHeader2;
+ private System.Windows.Forms.ColumnHeader columnHeader3;
+ private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
+ private System.Windows.Forms.ToolStripMenuItem addToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem windowPluginToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem windowToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem procesToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem subtitleToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem tagReadersToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem externalPlayersToolStripMenuItem;
+ private System.Windows.Forms.ColumnHeader columnHeader4;
+ private System.Windows.Forms.ToolStripMenuItem skinToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem componentToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem mediaToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem fullToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem openProiectToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem sToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem saveProiectAsToolStripMenuItem;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
+ private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem;
+ private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
+ private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
+ private System.Windows.Forms.OpenFileDialog openFileDialog1;
+ private System.Windows.Forms.ColumnHeader columnHeader5;
+ private System.Windows.Forms.SaveFileDialog saveFileDialog1;
+ private System.Windows.Forms.ToolStripMenuItem languageToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem buildToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem toolStripComboBox1;
+ private System.Windows.Forms.GroupBox groupBox1;
+ }
+}
+
Added: trunk/plugins/mpinstaler/MPInstaler/Form1.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form1.cs (rev 0)
+++ trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-01-31 22:14:04 UTC (rev 68)
@@ -0,0 +1,249 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using System.Xml;
+using System.IO;
+using ICSharpCode.SharpZipLib.Zip;
+
+namespace MPInstaler
+{
+ public partial class Form1 : Form
+ {
+ private MPinstalerStruct _struct = new MPinstalerStruct();
+ public Form1()
+ {
+ InitializeComponent();
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ }
+
+ private void sToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ Stream myStream;
+
+ if (saveFileDialog1.ShowDialog(this) == DialogResult.OK)
+ {
+ if ((myStream = saveFileDialog1.OpenFile()) != null)
+ {
+ // Code to write the stream goes here.
+ XmlDocument doc = new XmlDocument();
+ XmlWriter writer = null;
+ _struct.AddFileList(bossview);
+ try
+ {
+ // Create an XmlWriterSettings object with the correct options.
+ XmlWriterSettings settings = new XmlWriterSettings();
+ string st = string.Empty;
+ settings.Indent = true;
+ settings.IndentChars = ("\t");
+ settings.OmitXmlDeclaration = true;
+ // Create the XmlWriter object and write some content.
+ writer = XmlWriter.Create(myStream, settings);
+ writer.WriteStartElement("MPinstaler");
+ writer.WriteElementString("ver", "1.00.000");
+ writer.WriteStartElement("FileList");
+ for (int i = 0; i < _struct.FileList.Count; i++)
+ {
+ MPIFileList it=(MPIFileList)_struct.FileList[i];
+ writer.WriteStartElement("File");
+ writer.WriteElementString("FileName",Path.GetFileName(it.FileName));
+ writer.WriteElementString("Type", it.Type);
+ writer.WriteElementString("SubType", it.SubType);
+ writer.WriteElementString("Path", Path.GetDirectoryName(it.FileName));
+ writer.WriteElementString("Id", it.ID);
+ writer.WriteEndElement();
+ st = st + bossview.Items[i].SubItems[3].Text + @"\" + bossview.Items[i].Text + ";";
+ }
+ writer.WriteEndElement();
+ writer.WriteStartElement("Option");
+ writer.WriteElementString("BuildFileName", _struct.BuildFileName);
+ writer.WriteEndElement();
+ writer.WriteEndElement();
+ writer.Flush();
+
+ //-------------------------------------
+ //-------------------------------------
+ }
+ finally
+ {
+ if (writer != null)
+ writer.Close();
+ }
+ myStream.Close();
+
+ }
+
+ }
+
+ }
+
+ private void windowToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ addplugin(1);
+ }
+
+ private void addplugin(int type)
+ {
+ /*
+ 1 - 10 PLUGINS
+ 1 - window
+ 2 - process
+ 3 - subtitle
+ 4 - tagreader
+ 5 - external player
+ */
+ string fil;
+ openFileDialog1.Filter = "Dll files|*.dll|All files|*.*";
+ if (openFileDialog1.ShowDialog(this) == DialogResult.OK)
+ {
+ fil = openFileDialog1.FileName;
+ switch (type)
+ {
+ case 1:
+ addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_WINDOW_SUBTYPE, Path.GetDirectoryName(fil), "01010");
+ break;
+ case 2:
+ addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_PROCESS_SUBTYPE, Path.GetDirectoryName(fil), "01020");
+ break;
+ case 3:
+ addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_SUBTITLE_SUBTYPE, Path.GetDirectoryName(fil), "01030");
+ break;
+ case 4:
+ addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_TAGREADER_SUBTYPE, Path.GetDirectoryName(fil), "01040");
+ break;
+ case 5:
+ addrow(Path.GetFileName(fil), MPinstalerStruct.PLUGIN_TYPE, MPinstalerStruct.PLUGIN_PLAYER_SUBTYPE, Path.GetDirectoryName(fil), "01050");
+ break;
+ default:
+ break;
+ }
+ }
+ }
+
+ private void addskin(int type)
+ {
+// string fil;
+ openFileDialog1.Filter = "xml files|*.xml|png files|*.png|bmp files|*.bmp|All files|*.*";
+ openFileDialog1.Multiselect = true;
+ if (openFileDialog1.ShowDialog(this) == DialogResult.OK)
+ {
+ foreach(string fil in openFileDialog1.FileNames)
+ switch (type)
+ {
+ case 1: addrow(Path.GetFileName(fil), MPinstalerStruct.SKIN_TYPE, MPinstalerStruct.SKIN_XML_SUBTYPE, Path.GetDirectoryName(fil), "02010");
+ break;
+ case 2: addrow(Path.GetFileName(fil), MPinstalerStruct.SKIN_MEDIA_TYPE, MPinstalerStruct.SKIN_XML_SUBTYPE, Path.GetDirectoryName(fil), "02020");
+ break;
+ default:
+ break;
+ }
+ }
+ }
+
+ private void subtitleToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ addplugin(3);
+ }
+
+ private void procesToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ addplugin(2);
+ }
+
+ private void tagReadersToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ addplugin(4);
+ }
+
+ private void externalPlayersToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ addplugin(5);
+ }
+
+ private void addrow(string file, string type, string subtype, string path, string id)
+ {
+ ListViewItem item1 = new ListViewItem(file, 0);
+ item1.SubItems.Add(type);
+ item1.SubItems.Add(subtype);
+ item1.SubItems.Add(path);
+ item1.SubItems.Add(id);
+ bossview.Items.AddRange(new ListViewItem[] { item1 });
+ }
+
+ private void openProiectToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ string fil;
+ openFileDialog1.Filter = "XML files|*.xml|All files|*.*";
+ if (openFileDialog1.ShowDialog(this) == DialogResult.OK)
+ {
+ fil = openFileDialog1.FileName;
+ XmlDocument doc = new XmlDocument();
+ doc.Load(fil);
+ XmlNode ver = doc.DocumentElement.SelectSingleNode("/MPinstaler");
+ bossview.Items.Clear();
+ XmlNodeList fileList = ver.SelectNodes("FileList/File");
+ foreach (XmlNode nodefile in fileList)
+ {
+ addrow(nodefile.SelectSingleNode("FileName").InnerText,
+ nodefile.SelectSingleNode("Type").InnerText,
+ nodefile.SelectSingleNode("SubType").InnerText,
+ nodefile.SelectSingleNode("Path").InnerText,
+ nodefile.SelectSingleNode("Id").InnerText);
+ }
+ _struct.BuildFileName=ver.SelectSingleNode("Option/BuildFileName").InnerText;
+ }
+ _struct.AddFileList(bossview);
+ }
+
+ private void languageToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ Form2 StrForm = new Form2();
+ StrForm.ShowDialog();
+ }
+
+ private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ OptionForm opForm = new OptionForm();
+ opForm.ShowDialog();
+ }
+
+ private void buildToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ Build_dialog buildfrm = new Build_dialog(this._struct);
+ buildfrm.ShowDialog();
+ this._struct = buildfrm._struct;
+ }
+
+ private void newToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ bossview.Items.Clear();
+ _struct.Clear();
+ }
+
+ private void componentToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ addskin(1);
+ }
+
+ private void mediaToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ addskin(2);
+ }
+
+ private void toolStripComboBox1_Click(object sender, EventArgs e)
+ {
+ for (int i = 0; i < bossview.Items.Count; i++)
+ if (bossview.Items[i].Selected) bossview.Items.RemoveAt(i);
+ }
+
+
+
+
+ }
+}
\ No newline at end of file
Added: trunk/plugins/mpinstaler/MPInstaler/Form1.resx
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form1.resx (rev 0)
+++ trunk/plugins/mpinstaler/MPInstaler/Form1.resx 2007-01-31 22:14:04 UTC (rev 68)
@@ -0,0 +1,132 @@
+<?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="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>126, 17</value>
+ </metadata>
+ <metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>271, 17</value>
+ </metadata>
+ <metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>401, 17</value>
+ </metadata>
+</root>
\ No newline at end of file
Added: trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs
===================================================================
--- trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs (rev 0)
+++ trunk/plugins/mpinstaler/MPInstaler/Form2.Designer.cs 2007-01-31 22:14:04 UTC (rev 68)
@@ -0,0 +1,136 @@
+namespace MPInstaler
+{
+ partial class Form2
+ {
+ /// <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.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.listView1 = new System.Windows.Forms.ListView();
+ this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
+ this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.textBox2 = new System.Windows.Forms.TextBox();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(80, 289);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(65, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "Add";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.button1_Click);
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(186, 289);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(75, 23);
+ this.button2.TabIndex = 1;
+ this.button2.Text = "Remove";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
+ // comboBox1
+ //
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Location = new System.Drawing.Point(12, 22);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(372, 21);
+ this.comboBox1.TabIndex = 2;
+ //
+ // listView1
+ //
+ this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
+ this.columnHeader1,
+ this.columnHeader2});
+ this.listView1.FullRowSelect = true;
+ this.listView1.GridLines = true;
+ this.listView1.Location = new System.Drawing.Point(12, 68);
+ this.listView1.Name = "listView1";
+ this.listView1.Size = new System.Drawing.Size(372, 179);
+ this.listView1.TabIndex = 3;
+ this.listView1.UseCompatibleStateImageBehavior = false;
+ this.listView1.View = System.Windows.Forms.View.Details;
+ this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
+ //
+ // columnHeader1
+ //
+ this.columnHeader1.Text = "Id";
+ //
+ // columnHeader2
+ //
+ this.columnHeader2.Text = "Value";
+ this.columnHeader2.Width = 308;
+ //
+ // textBox1
+ //
+ this.textBox1.Location = new System.Drawing.Point(12, 253);
+ this.textBox1.Name = "textBox1";
+ this.textBox1.Size = new System.Drawing.Size(62, 20);
+ this.textBox1.TabIndex = 4;
+ //
+ // textBox2
+ //
+ this.textBox2.Location = new System.Drawing.Point(80, 253);
+ this.textBox2.Name = "textBox2";
+ this.textBox2.Size = n...
[truncated message content] |