From: <fr...@us...> - 2009-02-12 17:05:27
|
Revision: 2649 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=2649&view=rev Author: framug Date: 2009-02-12 17:05:21 +0000 (Thu, 12 Feb 2009) Log Message: ----------- Modified Paths: -------------- trunk/plugins/WebEPGfr/WebEPGfrSetup.Designer.cs trunk/plugins/WebEPGfr/WebEPGfrSetup.cs Modified: trunk/plugins/WebEPGfr/WebEPGfrSetup.Designer.cs =================================================================== --- trunk/plugins/WebEPGfr/WebEPGfrSetup.Designer.cs 2009-02-12 16:46:03 UTC (rev 2648) +++ trunk/plugins/WebEPGfr/WebEPGfrSetup.Designer.cs 2009-02-12 17:05:21 UTC (rev 2649) @@ -33,17 +33,18 @@ this.Config_Sauver = new System.Windows.Forms.Button(); this.Config_Quitter = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); - this.Repertoire_XMLTV = new System.Windows.Forms.TextBox(); + this.Repertoire_XMLTV_WebEPGfr = new System.Windows.Forms.TextBox(); this.Config_Parcourir = new System.Windows.Forms.Button(); this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabGeneral = new System.Windows.Forms.TabPage(); + this.Repertoire_XMLTV_MP = new System.Windows.Forms.Label(); this.label12 = new System.Windows.Forms.Label(); this.guiChkpostprocess = new System.Windows.Forms.CheckBox(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); this.var_Version = new System.Windows.Forms.Label(); this.backup = new System.Windows.Forms.CheckBox(); - this.Nom_Fichier_Guide = new System.Windows.Forms.TextBox(); + this.Nom_Fichier_Guide_WebEPGfr = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.lib_Version = new System.Windows.Forms.Label(); this.tabdownload = new System.Windows.Forms.TabPage(); @@ -91,7 +92,6 @@ this.mardi = new System.Windows.Forms.CheckBox(); this.lundi = new System.Windows.Forms.CheckBox(); this.libinfo = new System.Windows.Forms.Label(); - this.Repertoire_XMLTV_MP = new System.Windows.Forms.Label(); this.tabControl1.SuspendLayout(); this.tabGeneral.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit(); @@ -150,12 +150,12 @@ this.label3.TabIndex = 7; this.label3.Text = "Répertoire XMLTVde WebEPGfr : "; // - // Repertoire_XMLTV + // Repertoire_XMLTV_WebEPGfr // - this.Repertoire_XMLTV.Location = new System.Drawing.Point(205, 142); - this.Repertoire_XMLTV.Name = "Repertoire_XMLTV"; - this.Repertoire_XMLTV.Size = new System.Drawing.Size(253, 20); - this.Repertoire_XMLTV.TabIndex = 8; + this.Repertoire_XMLTV_WebEPGfr.Location = new System.Drawing.Point(205, 142); + this.Repertoire_XMLTV_WebEPGfr.Name = "Repertoire_XMLTV_WebEPGfr"; + this.Repertoire_XMLTV_WebEPGfr.Size = new System.Drawing.Size(253, 20); + this.Repertoire_XMLTV_WebEPGfr.TabIndex = 8; // // Config_Parcourir // @@ -188,11 +188,11 @@ this.tabGeneral.Controls.Add(this.pictureBox5); this.tabGeneral.Controls.Add(this.var_Version); this.tabGeneral.Controls.Add(this.backup); - this.tabGeneral.Controls.Add(this.Nom_Fichier_Guide); + this.tabGeneral.Controls.Add(this.Nom_Fichier_Guide_WebEPGfr); this.tabGeneral.Controls.Add(this.label4); this.tabGeneral.Controls.Add(this.lib_Version); this.tabGeneral.Controls.Add(this.Config_Parcourir); - this.tabGeneral.Controls.Add(this.Repertoire_XMLTV); + this.tabGeneral.Controls.Add(this.Repertoire_XMLTV_WebEPGfr); this.tabGeneral.Controls.Add(this.label3); this.tabGeneral.Controls.Add(this.label1); this.tabGeneral.Location = new System.Drawing.Point(4, 22); @@ -203,6 +203,15 @@ this.tabGeneral.Text = "Général"; this.tabGeneral.UseVisualStyleBackColor = true; // + // Repertoire_XMLTV_MP + // + this.Repertoire_XMLTV_MP.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Repertoire_XMLTV_MP.Location = new System.Drawing.Point(202, 115); + this.Repertoire_XMLTV_MP.Name = "Repertoire_XMLTV_MP"; + this.Repertoire_XMLTV_MP.Size = new System.Drawing.Size(365, 13); + this.Repertoire_XMLTV_MP.TabIndex = 19; + this.Repertoire_XMLTV_MP.Text = "C:\\Program Files\\Team MediaPortal\\MediaPortal\\XMLTV"; + // // label12 // this.label12.AutoSize = true; @@ -253,12 +262,12 @@ this.backup.UseVisualStyleBackColor = true; this.backup.CheckedChanged += new System.EventHandler(this.backup_CheckedChanged); // - // Nom_Fichier_Guide + // Nom_Fichier_Guide_WebEPGfr // - this.Nom_Fichier_Guide.Location = new System.Drawing.Point(205, 171); - this.Nom_Fichier_Guide.Name = "Nom_Fichier_Guide"; - this.Nom_Fichier_Guide.Size = new System.Drawing.Size(127, 20); - this.Nom_Fichier_Guide.TabIndex = 12; + this.Nom_Fichier_Guide_WebEPGfr.Location = new System.Drawing.Point(205, 171); + this.Nom_Fichier_Guide_WebEPGfr.Name = "Nom_Fichier_Guide_WebEPGfr"; + this.Nom_Fichier_Guide_WebEPGfr.Size = new System.Drawing.Size(127, 20); + this.Nom_Fichier_Guide_WebEPGfr.TabIndex = 12; // // label4 // @@ -786,15 +795,6 @@ this.libinfo.TabIndex = 11; this.libinfo.Text = "libinfo"; // - // Repertoire_XMLTV_MP - // - this.Repertoire_XMLTV_MP.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Repertoire_XMLTV_MP.Location = new System.Drawing.Point(202, 115); - this.Repertoire_XMLTV_MP.Name = "Repertoire_XMLTV_MP"; - this.Repertoire_XMLTV_MP.Size = new System.Drawing.Size(365, 13); - this.Repertoire_XMLTV_MP.TabIndex = 19; - this.Repertoire_XMLTV_MP.Text = "C:\\Program Files\\Team MediaPortal\\MediaPortal\\XMLTV"; - // // WebEPGfrSetup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -846,14 +846,14 @@ private System.Windows.Forms.Button Config_Sauver; private System.Windows.Forms.Button Config_Quitter; private System.Windows.Forms.Label label3; - private System.Windows.Forms.TextBox Repertoire_XMLTV; + private System.Windows.Forms.TextBox Repertoire_XMLTV_WebEPGfr; private System.Windows.Forms.Button Config_Parcourir; private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1; private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabPage tabGeneral; private System.Windows.Forms.TabPage tabMapping; private System.Windows.Forms.Label lib_Version; - private System.Windows.Forms.TextBox Nom_Fichier_Guide; + private System.Windows.Forms.TextBox Nom_Fichier_Guide_WebEPGfr; private System.Windows.Forms.Label label4; private System.Windows.Forms.ListView liste_chaines; private System.Windows.Forms.ColumnHeader TVChanelMP; Modified: trunk/plugins/WebEPGfr/WebEPGfrSetup.cs =================================================================== --- trunk/plugins/WebEPGfr/WebEPGfrSetup.cs 2009-02-12 16:46:03 UTC (rev 2648) +++ trunk/plugins/WebEPGfr/WebEPGfrSetup.cs 2009-02-12 17:05:21 UTC (rev 2649) @@ -81,7 +81,7 @@ private bool ControleSaisie() { // Le nom d'utilisateur, le r\xE9pertoire XMLTV et le nom du fichier guide sont obligatoires - if ( Repertoire_XMLTV.Text == "" && Nom_Fichier_Guide.Text == "") + if ( Repertoire_XMLTV_WebEPGfr.Text == "" && Nom_Fichier_Guide_WebEPGfr.Text == "") { libinfo.Text = "Le r\xE9pertoire XMLTV et le nom du fichier guide sont obligatoires"; libinfo.ForeColor = Color.Red; @@ -95,20 +95,20 @@ libinfo.ForeColor = Color.Red; return false; } - if (Repertoire_XMLTV.Text == "") + if (Repertoire_XMLTV_WebEPGfr.Text == "") { libinfo.Text = "Le r\xE9pertoire XMLTV est obligatoire"; libinfo.ForeColor = Color.Red; return false; } - if (Nom_Fichier_Guide.Text == "") + if (Nom_Fichier_Guide_WebEPGfr.Text == "") { libinfo.Text = "Le nom du fichier guide est obligatoire"; libinfo.ForeColor = Color.Red; return false; } // Il faut que le r\xE9pertoire saisi contienne un fichier DTD - _DTD = Repertoire_XMLTV.Text + "\\xmltv.dtd"; + _DTD = Repertoire_XMLTV_WebEPGfr.Text + "\\xmltv.dtd"; if (!File.Exists(_DTD)) { libinfo.Text = "R\xE9pertoire XMLTV non valide (Fichier xmltv.dtd non trouv\xE9)"; @@ -142,7 +142,7 @@ { if (this.liste_chaines.Items.Count > 0) { - string sPath = this.Repertoire_XMLTV.Text; + string sPath = this.Repertoire_XMLTV_WebEPGfr.Text; if (sPath.Substring(sPath.Length - 1, 1) != @"\") { sPath = sPath + @"\"; } sPath = sPath + sFileName; FileInfo oConfigFile = new FileInfo(sPath); @@ -168,8 +168,8 @@ // Ecrire la configuration de WebEPGfr XmlConfig.WriteXmlConfig("WebEPGfr", "WebEPGfr", "Repertoire XMLTV de MP", Repertoire_XMLTV_MP.Text.ToString()); XmlConfig.WriteXmlConfig("WebEPGfr", "WebEPGfr", "Nom du fichier guide de MP", _Nom_Fichier_Guide_MP.ToString()); - XmlConfig.WriteXmlConfig("WebEPGfr", "WebEPGfr", "Repertoire XMLTV de WebEPGfr", Repertoire_XMLTV.Text.ToString()); - XmlConfig.WriteXmlConfig("WebEPGfr", "WebEPGfr", "Nom du fichier guide de WebEPGfr", Nom_Fichier_Guide.Text.ToString()); + XmlConfig.WriteXmlConfig("WebEPGfr", "WebEPGfr", "Repertoire XMLTV de WebEPGfr", Repertoire_XMLTV_WebEPGfr.Text.ToString()); + XmlConfig.WriteXmlConfig("WebEPGfr", "WebEPGfr", "Nom du fichier guide de WebEPGfr", Nom_Fichier_Guide_WebEPGfr.Text.ToString()); XmlConfig.WriteXmlConfig("WebEPGfr", "WebEPGfr", "backup", backup.Checked); XmlConfig.WriteXmlConfig("WebEPGfr", "WebEPGfr", "PostProcess", guiChkpostprocess.Checked); //Choix du GrabberXmltv @@ -201,8 +201,8 @@ private void LireXMLConfig() { Repertoire_XMLTV_MP.Text = XmlConfig.ReadXmlConfig("WebEPGfr", "WebEPGfr", "Repertoire XMLTV de MP", ""); - Repertoire_XMLTV.Text = XmlConfig.ReadXmlConfig("WebEPGfr", "WebEPGfr", "Repertoire XMLTV de WebEPGfr", ""); - Nom_Fichier_Guide.Text = XmlConfig.ReadXmlConfig("WebEPGfr", "WebEPGfr", "Nom du fichier guide de WebEPGfr", ""); + Repertoire_XMLTV_WebEPGfr.Text = XmlConfig.ReadXmlConfig("WebEPGfr", "WebEPGfr", "Repertoire XMLTV de WebEPGfr", ""); + Nom_Fichier_Guide_WebEPGfr.Text = XmlConfig.ReadXmlConfig("WebEPGfr", "WebEPGfr", "Nom du fichier guide de WebEPGfr", ""); backup.Checked = XmlConfig.ReadXmlConfig("WebEPGfr", "WebEPGfr", "backup", false); guiChkpostprocess.Checked = XmlConfig.ReadXmlConfig("WebEPGfr", "WebEPGfr", "PostProcess", false); //Selection du site de grab XmlTV @@ -277,15 +277,15 @@ } } // Le nom du fichier guide est TVguide.xml par d\xE9faut, dans MediaPortal - if (Nom_Fichier_Guide.Text == "") + if (Nom_Fichier_Guide_WebEPGfr.Text == "") { - Nom_Fichier_Guide.Text = _Nom_Fichier_Guide_MP; + Nom_Fichier_Guide_WebEPGfr.Text = _Nom_Fichier_Guide_MP; } // Si le r\xE9pertoire XMLTV de WebEPGfr n'existe pas, je met le r\xE9pertoire XMLTV de MP par defaut - if (Repertoire_XMLTV.Text == "") + if (Repertoire_XMLTV_WebEPGfr.Text == "") { - Repertoire_XMLTV.Text = Repertoire_XMLTV_MP.Text; + Repertoire_XMLTV_WebEPGfr.Text = Repertoire_XMLTV_MP.Text; } } @@ -303,15 +303,15 @@ Repertoire_XMLTV_MP.Text = XmlConfig.ReadXmlConfig("MediaPortal", "xmltv", "folder", ""); } // Le nom du fichier guide est TVguide.xml par d\xE9faut, dans MediaPortal - if (Nom_Fichier_Guide.Text == "") + if (Nom_Fichier_Guide_WebEPGfr.Text == "") { - Nom_Fichier_Guide.Text = _Nom_Fichier_Guide_MP; + Nom_Fichier_Guide_WebEPGfr.Text = _Nom_Fichier_Guide_MP; } // Si le r\xE9pertoire XMLTV de WebEPGfr n'existe pas, je met le r\xE9pertoire XMLTV de MP par defaut - if (Repertoire_XMLTV.Text == "") + if (Repertoire_XMLTV_WebEPGfr.Text == "") { - Repertoire_XMLTV.Text = Repertoire_XMLTV_MP.Text; + Repertoire_XMLTV_WebEPGfr.Text = Repertoire_XMLTV_MP.Text; } } @@ -331,9 +331,9 @@ liste_chaines.Items.Clear(); oGrabber = new XMLGrabber(); - oGrabber.Configuration.Fichier_Guide_WebEPGfr = this.Nom_Fichier_Guide.Text.ToString(); + oGrabber.Configuration.Fichier_Guide_WebEPGfr = this.Nom_Fichier_Guide_WebEPGfr.Text.ToString(); oGrabber.Configuration.Repertoire_XMLTV_Mediaportal = this.Repertoire_XMLTV_MP.Text.ToString(); - oGrabber.Configuration.Repertoire_XMLTV_WebEPGfr = this.Repertoire_XMLTV.Text.ToString(); + oGrabber.Configuration.Repertoire_XMLTV_WebEPGfr = this.Repertoire_XMLTV_WebEPGfr.Text.ToString(); if (oUsedGrabber == InfosSuivantSites.Grabber.Kazer) { if (kazer_UserName.Text.Length > 0) @@ -388,9 +388,9 @@ liste_chaines.Items.Clear(); oGrabber = new XMLGrabber(); - oGrabber.Configuration.Fichier_Guide_WebEPGfr = this.Nom_Fichier_Guide.Text.ToString(); + oGrabber.Configuration.Fichier_Guide_WebEPGfr = this.Nom_Fichier_Guide_WebEPGfr.Text.ToString(); oGrabber.Configuration.Repertoire_XMLTV_Mediaportal = this.Repertoire_XMLTV_MP.Text.ToString(); - oGrabber.Configuration.Repertoire_XMLTV_WebEPGfr = this.Repertoire_XMLTV.Text.ToString(); + oGrabber.Configuration.Repertoire_XMLTV_WebEPGfr = this.Repertoire_XMLTV_WebEPGfr.Text.ToString(); if (oUsedGrabber == InfosSuivantSites.Grabber.Kazer) { if (kazer_UserName.Text.Length>0) @@ -499,9 +499,9 @@ if (ControleSaisie()) { //On essai de telecharger le fichier oGrabber = new XMLGrabber(); - oGrabber.Configuration.DestinationFile = this.Nom_Fichier_Guide.Text.ToString(); + oGrabber.Configuration.DestinationFile = this.Nom_Fichier_Guide_WebEPGfr.Text.ToString(); oGrabber.Configuration.Repertoire_XMLTV_Mediaportal = this.Repertoire_XMLTV_MP.Text.ToString(); - oGrabber.Configuration.Repertoire_XMLTV_WebEPGfr = this.Repertoire_XMLTV.Text.ToString(); + oGrabber.Configuration.Repertoire_XMLTV_WebEPGfr = this.Repertoire_XMLTV_WebEPGfr.Text.ToString(); oGrabber.Configuration.DownloadUri = new Uri(sUri); if (oGrabber.DownloadXmlTvFile() == 0) { //On a bien grabb\xE9 QQchose @@ -606,15 +606,15 @@ folderBrowserDialog1.Description = "Selectionnez le dossier o\xF9 se trouve votre r\xE9pertoire XMLTV"; // On ne veut pas de bouton cr\xE9er un nouveau dossier folderBrowserDialog1.ShowNewFolderButton = false; - folderBrowserDialog1.SelectedPath = Repertoire_XMLTV.Text; + folderBrowserDialog1.SelectedPath = Repertoire_XMLTV_WebEPGfr.Text; DialogResult dialogResult = folderBrowserDialog1.ShowDialog(this); // On a cliqu\xE9 sur OK alors, on renseigne la boite de texte Repertoire_XMLTV if (dialogResult == DialogResult.OK) { - if (Repertoire_XMLTV.Text != folderBrowserDialog1.SelectedPath) + if (Repertoire_XMLTV_WebEPGfr.Text != folderBrowserDialog1.SelectedPath) { - Repertoire_XMLTV.Text = folderBrowserDialog1.SelectedPath; + Repertoire_XMLTV_WebEPGfr.Text = folderBrowserDialog1.SelectedPath; libinfo.Text = "Repertoire XMLTV modifi\xE9"; libinfo.ForeColor = Color.Blue; } @@ -667,7 +667,7 @@ // Suppression des fichiers temporaires private void Supprime_Fichier_Temp(string Fichier) { - string Fichier_A_Supprimer = Repertoire_XMLTV.Text + @"\" + Fichier; + string Fichier_A_Supprimer = Repertoire_XMLTV_WebEPGfr.Text + @"\" + Fichier; if (File.Exists(Fichier_A_Supprimer)) { File.Delete(Fichier_A_Supprimer); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |