|
From: <ze...@us...> - 2007-03-10 23:27:31
|
Revision: 177
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=177&view=rev
Author: zebons
Date: 2007-03-10 15:27:29 -0800 (Sat, 10 Mar 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/MyFilms/MesFilms.cs
trunk/plugins/MyFilms/MesFilms.csproj
trunk/plugins/MyFilms/MesFilms.suo
trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs
trunk/plugins/MyFilms/MesFilmsSetup.cs
Modified: trunk/plugins/MyFilms/MesFilms.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilms.cs 2007-03-10 14:46:25 UTC (rev 176)
+++ trunk/plugins/MyFilms/MesFilms.cs 2007-03-10 23:27:29 UTC (rev 177)
@@ -580,8 +580,8 @@
if (boolselect)
{
string sLabel = lsCtlFilm.SelectedListItem.Label;
- if (WStrSort == "DateAdded")
- StrSelect = "Date" + " like '" + DateTime.Parse(sLabel).ToShortDateString() + "'";
+ if (WStrSort == "Date")
+ StrSelect = "Date" + " like '" + string.Format("{0:dd/MM/yyyy}",DateTime.Parse(sLabel).ToShortDateString()) + "'";
else
{
if (sLabel == "")
@@ -1006,13 +1006,13 @@
else
{
champselect = enr[WStrSort].ToString();
- arSplit = champselect.Split(Sep, StringSplitOptions.None);//will add "" entries also, //StringSplitOptions.RemoveEmptyEntries
- for (wi = 0; wi < arSplit.Length; wi++)
- if (arSplit[wi].IndexOf("(") > 0)
- w_tableau.Add(arSplit[wi].Substring(0, arSplit[wi].IndexOf("(")).Trim());
- else
- w_tableau.Add(arSplit[wi].Trim());
}
+ arSplit = champselect.Split(Sep, StringSplitOptions.None);//will add "" entries also, //StringSplitOptions.RemoveEmptyEntries
+ for (wi = 0; wi < arSplit.Length; wi++)
+ if (arSplit[wi].IndexOf("(") > 0)
+ w_tableau.Add(arSplit[wi].Substring(0, arSplit[wi].IndexOf("(")).Trim());
+ else
+ w_tableau.Add(arSplit[wi].Trim());
}
if (WStrSortSens == " ASC")
w_tableau.Sort(0, w_tableau.Count, null);
@@ -1225,7 +1225,10 @@
{
if (StrViewDfltText.Length == 0)
{
- Change_view(StrViewDfltItem);
+ if (StrViewDfltItem == StrViewItem1)
+ Change_view("View1");
+ else
+ Change_view("View2");
}
else
// View List as selected
@@ -1315,7 +1318,7 @@
return;
}
if (choice_view == "View1")
- {
+ {
// Change View by "View1":
WStrSort = StrViewItem1; // specific user View1
WStrSortSens = " ASC";
Modified: trunk/plugins/MyFilms/MesFilms.csproj
===================================================================
--- trunk/plugins/MyFilms/MesFilms.csproj 2007-03-10 14:46:25 UTC (rev 176)
+++ trunk/plugins/MyFilms/MesFilms.csproj 2007-03-10 23:27:29 UTC (rev 177)
@@ -31,7 +31,7 @@
<ItemGroup>
<Reference Include="Core, Version=1.0.2548.1824, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MesFilms\Core_Stable\Core.DLL</HintPath>
+ <HintPath>..\..\mediaportal_plugin\MesFilms\Core_Svn\Core.dll</HintPath>
</Reference>
<Reference Include="Databases, Version=1.0.2548.1828, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
@@ -50,7 +50,7 @@
<Reference Include="System.Xml" />
<Reference Include="Utils, Version=1.0.2548.1816, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MesFilms\Core_Stable\Utils.DLL</HintPath>
+ <HintPath>..\..\mediaportal_plugin\MesFilms\Core_Svn\Utils.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Modified: trunk/plugins/MyFilms/MesFilms.suo
===================================================================
(Binary files differ)
Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-03-10 14:46:25 UTC (rev 176)
+++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-03-10 23:27:29 UTC (rev 177)
@@ -141,6 +141,7 @@
this.AntUpdItem1 = new System.Windows.Forms.ComboBox();
this.AntUpdText1 = new System.Windows.Forms.TextBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
+ this.TitleDelim = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.AntTitle2 = new System.Windows.Forms.ComboBox();
@@ -160,7 +161,6 @@
this.View_Dflt_Text = new System.Windows.Forms.TextBox();
this.ButDelet = new System.Windows.Forms.Button();
this.Config_Dflt = new System.Windows.Forms.CheckBox();
- this.TitleDelim = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
@@ -618,6 +618,14 @@
this.groupBox5.TabStop = false;
this.groupBox5.Text = "AnTitle Order";
//
+ // TitleDelim
+ //
+ this.TitleDelim.Location = new System.Drawing.Point(357, 19);
+ this.TitleDelim.MaxLength = 1;
+ this.TitleDelim.Name = "TitleDelim";
+ this.TitleDelim.Size = new System.Drawing.Size(20, 20);
+ this.TitleDelim.TabIndex = 20;
+ //
// label9
//
this.label9.AutoSize = true;
@@ -689,11 +697,11 @@
// label10
//
this.label10.AutoSize = true;
- this.label10.Location = new System.Drawing.Point(755, 40);
+ this.label10.Location = new System.Drawing.Point(746, 40);
this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(60, 13);
+ this.label10.Size = new System.Drawing.Size(69, 13);
this.label10.TabIndex = 34;
- this.label10.Text = "Version 4.0";
+ this.label10.Text = "Version 4.0.1";
//
// textBox1
//
@@ -823,14 +831,6 @@
this.Config_Dflt.UseVisualStyleBackColor = true;
this.Config_Dflt.Enter += new System.EventHandler(this.Config_Name_Control);
//
- // TitleDelim
- //
- this.TitleDelim.Location = new System.Drawing.Point(357, 19);
- this.TitleDelim.MaxLength = 1;
- this.TitleDelim.Name = "TitleDelim";
- this.TitleDelim.Size = new System.Drawing.Size(20, 20);
- this.TitleDelim.TabIndex = 20;
- //
// MesFilmsSetup
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs
===================================================================
--- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-03-10 14:46:25 UTC (rev 176)
+++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-03-10 23:27:29 UTC (rev 177)
@@ -394,6 +394,11 @@
View_Dflt_Text.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "ViewDfltText", "");
if((Config_Name.Text) == MyFilms_xmlreader.GetValueAsString("MyFilms", "Default_Config", ""))
Config_Dflt.Checked = true;
+ if (!(AntViewItem1.Text == "Country") & !(AntViewItem1.Text == "Category") & !(AntViewItem1.Text == "Year") & !(AntViewItem1.Text == "(none)"))
+ View_Dflt_Item.Items.Add(AntViewItem1.Text);
+ if (!(AntViewItem2.Text == "Country") & !(AntViewItem2.Text == "Category") & !(AntViewItem2.Text == "Year") & !(AntViewItem2.Text == "(none)"))
+ View_Dflt_Item.Items.Add(AntViewItem2.Text);
+ View_Dflt_Item.Items.Remove("");
}
private void Refresh_Items()
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|