From: <du...@us...> - 2007-02-18 09:42:55
|
Revision: 121 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=121&view=rev Author: dukus Date: 2007-02-18 01:42:47 -0800 (Sun, 18 Feb 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs trunk/plugins/mpinstaler/MPInstaler/Form1.cs trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs trunk/plugins/mpinstaler/MPInstaler.suo Added Paths: ----------- trunk/plugins/mpinstaler/MPInstaler/Language dialog.Designer.cs trunk/plugins/mpinstaler/MPInstaler/Language dialog.cs trunk/plugins/mpinstaler/MPInstaler/Language dialog.resx trunk/plugins/mpinstaler/MPInstaler/MPpackageStruct.cs trunk/plugins/mpinstaler/MPInstaler/start_form.Designer.cs trunk/plugins/mpinstaler/MPInstaler/start_form.cs trunk/plugins/mpinstaler/MPInstaler/start_form.resx trunk/plugins/mpinstaler/MPInstaler/wizard/ trunk/plugins/mpinstaler/MPInstaler/wizard/wizard_1.Designer.cs trunk/plugins/mpinstaler/MPInstaler/wizard/wizard_1.cs trunk/plugins/mpinstaler/MPInstaler/wizard/wizard_1.resx trunk/plugins/mpinstaler/MPInstaler/wizard_background.png Modified: trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-02-17 19:02:54 UTC (rev 120) +++ trunk/plugins/mpinstaler/MPInstaler/Form1.Designer.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -75,12 +75,14 @@ this.label1 = new System.Windows.Forms.Label(); this.tabPage_Language = new System.Windows.Forms.TabPage(); this.tabPage_Proiect = new System.Windows.Forms.TabPage(); + this.proiectt_textBox3 = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.proiectt_textBox2 = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.proiectt_textBox1 = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); - this.proiectt_textBox1 = new System.Windows.Forms.TextBox(); - this.label3 = new System.Windows.Forms.Label(); - this.proiectt_textBox2 = new System.Windows.Forms.TextBox(); - this.label4 = new System.Windows.Forms.Label(); - this.proiectt_textBox3 = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.proiectt_textBox4 = new System.Windows.Forms.TextBox(); this.menuStrip1.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); this.tabControl1.SuspendLayout(); @@ -456,6 +458,8 @@ // // tabPage_Proiect // + this.tabPage_Proiect.Controls.Add(this.proiectt_textBox4); + this.tabPage_Proiect.Controls.Add(this.label5); this.tabPage_Proiect.Controls.Add(this.proiectt_textBox3); this.tabPage_Proiect.Controls.Add(this.label4); this.tabPage_Proiect.Controls.Add(this.proiectt_textBox2); @@ -469,23 +473,31 @@ this.tabPage_Proiect.Text = "Proiect Properties"; this.tabPage_Proiect.UseVisualStyleBackColor = true; // - // label2 + // proiectt_textBox3 // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(3, 12); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(41, 13); - this.label2.TabIndex = 0; - this.label2.Text = "Name :"; + this.proiectt_textBox3.Location = new System.Drawing.Point(94, 59); + this.proiectt_textBox3.Name = "proiectt_textBox3"; + this.proiectt_textBox3.Size = new System.Drawing.Size(298, 20); + this.proiectt_textBox3.TabIndex = 5; + this.proiectt_textBox3.TextChanged += new System.EventHandler(this.proiectt_textBox1_TextChanged); // - // proiectt_textBox1 + // label4 // - this.proiectt_textBox1.Location = new System.Drawing.Point(94, 5); - this.proiectt_textBox1.Name = "proiectt_textBox1"; - this.proiectt_textBox1.Size = new System.Drawing.Size(298, 20); - this.proiectt_textBox1.TabIndex = 1; - this.proiectt_textBox1.TextChanged += new System.EventHandler(this.proiectt_textBox1_TextChanged); + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(3, 66); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(73, 13); + this.label4.TabIndex = 4; + this.label4.Text = "Update URL :"; // + // proiectt_textBox2 + // + this.proiectt_textBox2.Location = new System.Drawing.Point(94, 33); + this.proiectt_textBox2.Name = "proiectt_textBox2"; + this.proiectt_textBox2.Size = new System.Drawing.Size(298, 20); + this.proiectt_textBox2.TabIndex = 3; + this.proiectt_textBox2.TextChanged += new System.EventHandler(this.proiectt_textBox1_TextChanged); + // // label3 // this.label3.AutoSize = true; @@ -495,29 +507,40 @@ this.label3.TabIndex = 2; this.label3.Text = "Author :"; // - // proiectt_textBox2 + // proiectt_textBox1 // - this.proiectt_textBox2.Location = new System.Drawing.Point(94, 33); - this.proiectt_textBox2.Name = "proiectt_textBox2"; - this.proiectt_textBox2.Size = new System.Drawing.Size(298, 20); - this.proiectt_textBox2.TabIndex = 3; + this.proiectt_textBox1.Location = new System.Drawing.Point(94, 5); + this.proiectt_textBox1.Name = "proiectt_textBox1"; + this.proiectt_textBox1.Size = new System.Drawing.Size(298, 20); + this.proiectt_textBox1.TabIndex = 1; + this.proiectt_textBox1.TextChanged += new System.EventHandler(this.proiectt_textBox1_TextChanged); // - // label4 + // label2 // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(3, 66); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(73, 13); - this.label4.TabIndex = 4; - this.label4.Text = "Update URL :"; + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(3, 12); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(41, 13); + this.label2.TabIndex = 0; + this.label2.Text = "Name :"; // - // proiectt_textBox3 + // label5 // - this.proiectt_textBox3.Location = new System.Drawing.Point(94, 59); - this.proiectt_textBox3.Name = "proiectt_textBox3"; - this.proiectt_textBox3.Size = new System.Drawing.Size(298, 20); - this.proiectt_textBox3.TabIndex = 5; + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(5, 92); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(48, 13); + this.label5.TabIndex = 6; + this.label5.Text = "Version :"; // + // proiectt_textBox4 + // + this.proiectt_textBox4.Location = new System.Drawing.Point(94, 85); + this.proiectt_textBox4.Name = "proiectt_textBox4"; + this.proiectt_textBox4.Size = new System.Drawing.Size(298, 20); + this.proiectt_textBox4.TabIndex = 7; + this.proiectt_textBox4.TextChanged += new System.EventHandler(this.proiectt_textBox1_TextChanged); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -597,6 +620,8 @@ private System.Windows.Forms.Label label3; private System.Windows.Forms.TextBox proiectt_textBox3; private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox proiectt_textBox4; } } Modified: trunk/plugins/mpinstaler/MPInstaler/Form1.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-02-17 19:02:54 UTC (rev 120) +++ trunk/plugins/mpinstaler/MPInstaler/Form1.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -15,6 +15,7 @@ { private MPinstalerStruct _struct = new MPinstalerStruct(); private string proiect_file_name = "Untitled"; + private bool _loading = false; public Form1() { InitializeComponent(); @@ -29,12 +30,13 @@ saveFileDialog1.Filter = "Proiect files (*.xmp)|*.xmp|All files |*.*"; if (Path.GetFileName(proiect_file_name) == "Untitled") { + _struct.AddFileList(bossview); if (saveFileDialog1.ShowDialog(this) == DialogResult.OK) { proiect_file_name = saveFileDialog1.FileName; - save_proiect_file(proiect_file_name); + _struct.SaveToFile(proiect_file_name); } - } else save_proiect_file(proiect_file_name); + } else _struct.SaveToFile(proiect_file_name); } private void windowToolStripMenuItem_Click(object sender, EventArgs e) @@ -131,6 +133,17 @@ addplugin(5); } + private void addrow(MPIFileList list) + { + ListViewItem item1 = new ListViewItem(Path.GetFileName(list.FileName), 0); + item1.SubItems.Add(list.Type); + item1.SubItems.Add(list.SubType); + item1.SubItems.Add(list.FileName); + item1.SubItems.Add(list.ID); + item1.SubItems.Add(list.Option); + bossview.Items.AddRange(new ListViewItem[] { item1 }); + } + private void addrow(string file, string type, string subtype, string path, string id) { ListViewItem item1 = new ListViewItem(file, 0); @@ -151,39 +164,35 @@ item1.SubItems.Add(op); bossview.Items.AddRange(new ListViewItem[] { item1 }); } + private void openProiectToolStripMenuItem_Click(object sender, EventArgs e) { string fil; openFileDialog1.Filter = "Proiect files (*.xmp)|*.xmp|All files |*.*"; if (openFileDialog1.ShowDialog(this) == DialogResult.OK) { + bossview.Items.Clear(); fil = openFileDialog1.FileName; proiect_file_name = fil; - 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) + _struct.LoadFromFile(fil); + _struct.ProiectdFileName = fil; + loadProperties(); + for (int i=0;i<_struct.FileList.Count;i++) { - addrow(nodefile.SelectSingleNode("FileName").InnerText, - nodefile.SelectSingleNode("Type").InnerText, - nodefile.SelectSingleNode("SubType").InnerText, - nodefile.SelectSingleNode("Source").InnerText, - nodefile.SelectSingleNode("Id").InnerText); + addrow((MPIFileList)_struct.FileList[i]); } - _struct.BuildFileName = ver.SelectSingleNode("Option/BuildFileName").InnerText; - _struct.Name = ver.SelectSingleNode("Option/ProiectName").InnerText; - _struct.Author = ver.SelectSingleNode("Option/Author").InnerText; - _struct.UpdateURL = ver.SelectSingleNode("Option/UpdateURL").InnerText; - _struct.ProiectdFileName = fil; } - _struct.AddFileList(bossview); - proiectt_textBox1.Text = _struct.Name; - proiectt_textBox2.Text = _struct.Author; - proiectt_textBox2.Text = _struct.UpdateURL; } + private void loadProperties() + { + _loading = true; + proiectt_textBox1.Text = _struct.Name; + proiectt_textBox2.Text = _struct.Author; + proiectt_textBox3.Text = _struct.UpdateURL; + proiectt_textBox4.Text = _struct.Version; + _loading = false; + } private void languageToolStripMenuItem_Click(object sender, EventArgs e) { Form2 StrForm = new Form2(); @@ -208,6 +217,7 @@ { bossview.Items.Clear(); _struct.Clear(); + loadProperties(); } private void componentToolStripMenuItem_Click(object sender, EventArgs e) @@ -226,66 +236,7 @@ if (bossview.Items[i].Selected) bossview.Items.RemoveAt(i); } - private void save_proiect_file(string fil) - { - Stream myStream; - if ((myStream = File.Open(fil,FileMode.Create, FileAccess.Write, FileShare.None)) != 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("Source", Path.GetFullPath(it.FileName)); - writer.WriteElementString("Id", it.ID); - writer.WriteElementString("Option", it.Option); - 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.WriteElementString("ProiectFileName", Path.GetFullPath(_struct.ProiectdFileName)); - writer.WriteElementString("ProiectName", _struct.Name); - writer.WriteElementString("Author", _struct.Author); - writer.WriteElementString("UpdateURL", _struct.UpdateURL); - writer.WriteEndElement(); - writer.WriteEndElement(); - writer.Flush(); - //------------------------------------- - //------------------------------------- - } - finally - { - if (writer != null) - writer.Close(); - } - myStream.Close(); - - } - - } - private void saveProiectAsToolStripMenuItem_Click(object sender, EventArgs e) { saveFileDialog1.Filter = "Proiect files (*.xmp)|*.xmp|All files |*.*"; @@ -293,7 +244,8 @@ { proiect_file_name = saveFileDialog1.FileName; _struct.ProiectdFileName = proiect_file_name; - save_proiect_file(proiect_file_name); + _struct.AddFileList(bossview); + _struct.SaveToFile(proiect_file_name); } } @@ -361,7 +313,13 @@ private void proiectt_textBox1_TextChanged(object sender, EventArgs e) { - _struct.Name = proiectt_textBox1.Text; + if (!_loading) + { + _struct.Name = proiectt_textBox1.Text; + _struct.Author = proiectt_textBox2.Text; + _struct.UpdateURL = proiectt_textBox3.Text; + _struct.Version = proiectt_textBox4.Text; + } } Added: trunk/plugins/mpinstaler/MPInstaler/Language dialog.Designer.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Language dialog.Designer.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Language dialog.Designer.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -0,0 +1,161 @@ +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.languageComboBox = 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.button3 = new System.Windows.Forms.Button(); + this.button4 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(15, 279); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(65, 21); + 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(311, 279); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 21); + this.button2.TabIndex = 1; + this.button2.Text = "Remove"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // languageComboBox + // + this.languageComboBox.FormattingEnabled = true; + this.languageComboBox.Location = new System.Drawing.Point(12, 22); + this.languageComboBox.Name = "languageComboBox"; + this.languageComboBox.Size = new System.Drawing.Size(372, 21); + this.languageComboBox.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 = new System.Drawing.Size(304, 20); + this.textBox2.TabIndex = 5; + // + // button3 + // + this.button3.Location = new System.Drawing.Point(107, 279); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(75, 21); + this.button3.TabIndex = 6; + this.button3.Text = "Save"; + this.button3.UseVisualStyleBackColor = true; + // + // button4 + // + this.button4.Location = new System.Drawing.Point(209, 279); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(75, 21); + this.button4.TabIndex = 7; + this.button4.Text = "Cancel"; + this.button4.UseVisualStyleBackColor = true; + // + // Form2 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(396, 325); + this.Controls.Add(this.button4); + this.Controls.Add(this.button3); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.listView1); + this.Controls.Add(this.languageComboBox); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Name = "Form2"; + this.Text = "String Editor"; + this.Load += new System.EventHandler(this.Form2_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.ComboBox languageComboBox; + private System.Windows.Forms.ListView listView1; + private System.Windows.Forms.ColumnHeader columnHeader1; + private System.Windows.Forms.ColumnHeader columnHeader2; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Button button4; + } +} \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/Language dialog.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Language dialog.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Language dialog.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; +using System.IO; +using System.Globalization; +using MediaPortal.Configuration; + + +namespace MPInstaler +{ + public partial class Form2 : Form + { + public string baseDir; + string LanguageDirectory = Config.GetFolder(Config.Dir.Language); + public Form2() + { + InitializeComponent(); + } + private void LoadLanguages() + { + // Get system language + string strLongLanguage = CultureInfo.CurrentCulture.EnglishName; + int iTrimIndex = strLongLanguage.IndexOf(" ", 0, strLongLanguage.Length); + string strShortLanguage = strLongLanguage.Substring(0, iTrimIndex); + + bool bExactLanguageFound = false; + if (Directory.Exists(LanguageDirectory)) + { + string[] folders = Directory.GetDirectories(LanguageDirectory, "*.*"); + + foreach (string folder in folders) + { + string fileName = folder.Substring(folder.LastIndexOf(@"\") + 1); + + // + // Exclude cvs folder + // + if (fileName.ToLower() != "cvs") + { + if (fileName.Length > 0) + { + fileName = fileName.Substring(0, 1).ToUpper() + fileName.Substring(1); + languageComboBox.Items.Add(fileName); + + // Check language file to user region language + if (fileName.ToLower() == strLongLanguage.ToLower()) + { + languageComboBox.Text = fileName; + bExactLanguageFound = true; + } + else if (!bExactLanguageFound && (fileName.ToLower() == strShortLanguage.ToLower())) + { + languageComboBox.Text = fileName; + } + } + } + } + } + + if (languageComboBox.Text == "") + { + languageComboBox.Text = "English"; + } + } + + private void button1_Click(object sender, EventArgs e) + { + ListViewItem item1 = new ListViewItem(textBox1.Text, 0); + item1.SubItems.Add(textBox2.Text); + listView1.Items.AddRange(new ListViewItem[] { item1 }); + + } + + private void listView1_SelectedIndexChanged(object sender, EventArgs e) + { + + } + + private void button2_Click(object sender, EventArgs e) + { + foreach (int index in listView1.SelectedIndices) + { + listView1.Items.RemoveAt(index); + } + } + + private void Form2_Load(object sender, EventArgs e) + { + + LoadLanguages(); + } + } +} \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/Language dialog.resx =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/Language dialog.resx (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/Language dialog.resx 2007-02-18 09:42:47 UTC (rev 121) @@ -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 Modified: trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj 2007-02-17 19:02:54 UTC (rev 120) +++ trunk/plugins/mpinstaler/MPInstaler/MPInstaler.csproj 2007-02-18 09:42:47 UTC (rev 121) @@ -55,9 +55,11 @@ <HintPath>D:\Program Files\Team MediaPortal\MediaPortal\ICSharpCode.SharpZipLib.DLL</HintPath> </Reference> <Reference Include="System" /> + <Reference Include="System.Configuration.Install" /> <Reference Include="System.Data" /> <Reference Include="System.Deployment" /> <Reference Include="System.Drawing" /> + <Reference Include="System.Management" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> <Reference Include="Utils, Version=1.0.2595.36012, Culture=neutral, processorArchitecture=MSIL"> @@ -85,6 +87,7 @@ <Compile Include="Language dialog.Designer.cs"> <DependentUpon>Language dialog.cs</DependentUpon> </Compile> + <Compile Include="MPpackageStruct.cs" /> <Compile Include="OptionForm.cs"> <SubType>Form</SubType> </Compile> @@ -122,6 +125,10 @@ <SubType>Designer</SubType> <DependentUpon>start_form.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="wizard\wizard_1.resx"> + <SubType>Designer</SubType> + <DependentUpon>wizard_1.cs</DependentUpon> + </EmbeddedResource> <Compile Include="Properties\Resources.Designer.cs"> <AutoGen>True</AutoGen> <DependentUpon>Resources.resx</DependentUpon> @@ -149,6 +156,12 @@ <Compile Include="start_form.Designer.cs"> <DependentUpon>start_form.cs</DependentUpon> </Compile> + <Compile Include="wizard\wizard_1.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="wizard\wizard_1.Designer.cs"> + <DependentUpon>wizard_1.cs</DependentUpon> + </Compile> </ItemGroup> <ItemGroup> <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> Modified: trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs 2007-02-17 19:02:54 UTC (rev 120) +++ trunk/plugins/mpinstaler/MPInstaler/MPinstalerStruct.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -34,6 +34,8 @@ string _author = string.Empty; string _update = string.Empty; string _name = string.Empty; + string _version = string.Empty; + public ArrayList FileList = new ArrayList(); public MPinstalerStruct() { @@ -47,14 +49,21 @@ if (value == null) _update = ""; else _update = value; } } - public string Author + + public string Version { - get { return _author; } + get { return _version; } set { - if (value ==null) _author = "";else _author = value; + if (value == null) _version = ""; else _version = value; } } + + public string Author + { + get { return _author; } + set {_author = value; } + } public string Name { get { return _name; } @@ -83,8 +92,72 @@ { FileList.Clear(); BuildFileName = string.Empty; + ProiectdFileName = string.Empty; + Author = string.Empty; + Name = string.Empty; + Version = string.Empty; } + public bool SaveToFile(string fil) + { + Stream myStream; + if ((myStream = File.Open(fil, FileMode.Create, FileAccess.Write, FileShare.None)) != null) + { + // Code to write the stream goes here. + XmlDocument doc = new XmlDocument(); + XmlWriter writer = null; + 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 < this.FileList.Count; i++) + { + MPIFileList it = (MPIFileList)this.FileList[i]; + writer.WriteStartElement("File"); + writer.WriteElementString("FileName", Path.GetFileName(it.FileName)); + writer.WriteElementString("Type", it.Type); + writer.WriteElementString("SubType", it.SubType); + writer.WriteElementString("Source", Path.GetFullPath(it.FileName)); + writer.WriteElementString("Id", it.ID); + writer.WriteElementString("Option", it.Option); + writer.WriteEndElement(); + //st = st + bossview.Items[i].SubItems[3].Text + @"\" + bossview.Items[i].Text + ";"; + } + writer.WriteEndElement(); + writer.WriteStartElement("Option"); + writer.WriteElementString("BuildFileName", this.BuildFileName); + writer.WriteElementString("ProiectFileName", Path.GetFullPath(this.ProiectdFileName)); + writer.WriteElementString("ProiectName", this.Name); + writer.WriteElementString("Author", this.Author); + writer.WriteElementString("UpdateURL", this.UpdateURL); + writer.WriteElementString("Version", this.Version); + writer.WriteEndElement(); + writer.WriteEndElement(); + writer.Flush(); + + //------------------------------------- + //------------------------------------- + } + finally + { + if (writer != null) + writer.Close(); + } + myStream.Close(); + + } + return true; + } + public void BuilFile(ListBox ls, ProgressBar pb) { ZipOutputStream s = new ZipOutputStream(File.Create(_builFileName)); @@ -128,10 +201,31 @@ s.Finish(); s.Close(); } + public void LoadFromFile(string fil) { + XmlDocument doc = new XmlDocument(); + doc.Load(fil); + XmlNode ver = doc.DocumentElement.SelectSingleNode("/MPinstaler"); + XmlNodeList fileList = ver.SelectNodes("FileList/File"); + foreach (XmlNode nodefile in fileList) + { + this.FileList.Add(new MPIFileList( + nodefile.SelectSingleNode("Source").InnerText, + nodefile.SelectSingleNode("Type").InnerText, + nodefile.SelectSingleNode("SubType").InnerText, + nodefile.SelectSingleNode("Id").InnerText, + nodefile.SelectSingleNode("Option").InnerText)); + } + XmlNode nodeoption = ver.SelectSingleNode("Option"); + this.BuildFileName = nodeoption.SelectSingleNode("BuildFileName").InnerText; + this.Name = nodeoption.SelectSingleNode("ProiectName").InnerText; + this.Author = nodeoption.SelectSingleNode("Author").InnerText; + this.UpdateURL = nodeoption.SelectSingleNode("UpdateURL").InnerText; + this.Version = nodeoption.SelectSingleNode("Version").InnerText; } + public string GetZipEntry(MPIFileList flst) { string ret = string.Empty; @@ -170,6 +264,11 @@ ret = "Release" + @"\" + "Skin" + @"\" + flst.SubType + @"\" + "Media" + @"\" + Path.GetFileName(flst.FileName); } + if (flst.Type == TEXT_TYPE) + { + ret = "Release" + @"\" + "Text" + @"\" + flst.SubType + @"\" + Path.GetFileName(flst.FileName); + } + return ret; } } @@ -200,6 +299,7 @@ ID = i; Option = o; } + public string FileName { get { return _FileName; } Added: trunk/plugins/mpinstaler/MPInstaler/MPpackageStruct.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/MPpackageStruct.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/MPpackageStruct.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.IO; +using ICSharpCode.SharpZipLib.Zip; + +namespace MPInstaler +{ + public class MPpackageStruct + { + public MPinstalerStruct _intalerStruct= new MPinstalerStruct(); + public bool isValid = false; + public MPpackageStruct() + { + + } + + public void LoadFromFile(string fil) + { + byte[] data = new byte[2048]; + int nb = data.Length; + + ZipEntry entry; + try + { + if (File.Exists(fil)) + { + ZipInputStream s = new ZipInputStream(File.OpenRead(fil)); + while ((entry = s.GetNextEntry()) != null) + { + if (entry.Name == "instaler.xmp") + { + string tpf =Path.GetFullPath(Environment.GetEnvironmentVariable("TEMP"))+@"\" +"instaler.xmp" ; + isValid = true; + FileStream fs = new FileStream(tpf, FileMode.Create); + while ((nb = s.Read(data, 0, data.Length)) > 0) + { + fs.Write(data, 0, nb); + //progressBar.Value = +nb; + } + fs.Close(); + _intalerStruct.LoadFromFile(tpf); + } + } + s.Close(); + } + } + catch (Exception) + { + isValid = false; + } + } + } +} Added: trunk/plugins/mpinstaler/MPInstaler/start_form.Designer.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/start_form.Designer.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/start_form.Designer.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -0,0 +1,93 @@ +namespace MPInstaler +{ + partial class start_form + { + /// <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.button3 = new System.Windows.Forms.Button(); + this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(86, 50); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(121, 32); + this.button1.TabIndex = 0; + this.button1.Text = "Manage package"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // button2 + // + this.button2.Location = new System.Drawing.Point(86, 118); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(121, 32); + this.button2.TabIndex = 1; + this.button2.Text = "Install package"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // button3 + // + this.button3.Location = new System.Drawing.Point(86, 184); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(121, 32); + this.button3.TabIndex = 2; + this.button3.Text = "Control panel"; + this.button3.UseVisualStyleBackColor = true; + // + // openFileDialog1 + // + this.openFileDialog1.FileName = "openFileDialog1"; + this.openFileDialog1.Filter = "MPI files|*.mpi|ZIP files|*.zip|All files|*.*"; + // + // start_form + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(292, 266); + this.Controls.Add(this.button3); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; + this.Name = "start_form"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.OpenFileDialog openFileDialog1; + } +} \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/start_form.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/start_form.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/start_form.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -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 start_form : Form + { + public start_form() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + Form1 create_dlg = new Form1(); + this.Hide(); + create_dlg.ShowDialog(); + this.Show(); + } + + private void button2_Click(object sender, EventArgs e) + { + if (openFileDialog1.ShowDialog(this) == DialogResult.OK) + { + this.Hide(); + install_Package(openFileDialog1.FileName); + this.Show(); + } + } + + private void install_Package(string fil) + { + wizard_1 wiz = new wizard_1(); + wiz.package.LoadFromFile(fil); + if (wiz.package.isValid) + { + wiz.nextStep(); + } + else + MessageBox.Show("Invalid package !"); + + + } + } +} \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/start_form.resx =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/start_form.resx (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/start_form.resx 2007-02-18 09:42:47 UTC (rev 121) @@ -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="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>39, 17</value> + </metadata> +</root> \ No newline at end of file Added: trunk/plugins/mpinstaler/MPInstaler/wizard/wizard_1.Designer.cs =================================================================== --- trunk/plugins/mpinstaler/MPInstaler/wizard/wizard_1.Designer.cs (rev 0) +++ trunk/plugins/mpinstaler/MPInstaler/wizard/wizard_1.Designer.cs 2007-02-18 09:42:47 UTC (rev 121) @@ -0,0 +1,127 @@ +namespace MPInstaler +{ + partial class wizard_1 + { + /// <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() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(wizard_1)); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.button_back = new System.Windows.Forms.Button(); + this.button_next = new System.Windows.Forms.Button(); + this.button_cancel = new System.Windows.Forms.Button(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Location = new System.Drawing.Point(165, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(334, 298); + this.panel1.TabIndex = 0; + // + // panel2 + // + this.panel2.Controls.Add(this.pictureBox1); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(168, 298); + this.panel2.TabIndex = 1; + // + // pictureBox1 + // + this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); + this.pictureBox1.Location = new System.Drawing.Point(0, 0); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(168, 298); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 5; + this.pictureBox1.TabStop = false; + // + // button_back + // + this.button_back.Location = new System.Drawing.Point(223, 314); + this.button_back.Name = "button_back"; + this.button_back.Size = new System.Drawing.Size(75, 23); + this.button_... [truncated message content] |