summaryrefslogtreecommitdiffstats
path: root/Mandriva - Autorun CD-DVD/AutorunForm.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Mandriva - Autorun CD-DVD/AutorunForm.cs')
-rwxr-xr-xMandriva - Autorun CD-DVD/AutorunForm.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/Mandriva - Autorun CD-DVD/AutorunForm.cs b/Mandriva - Autorun CD-DVD/AutorunForm.cs
index 6843be5..c4cde43 100755
--- a/Mandriva - Autorun CD-DVD/AutorunForm.cs
+++ b/Mandriva - Autorun CD-DVD/AutorunForm.cs
@@ -28,6 +28,7 @@ namespace autorun
private CultureInfo m_ChineseCulture = new CultureInfo("zh-CN");
private String version;
+ private String product;
private String desktop;
public autorunForm()
@@ -48,13 +49,13 @@ namespace autorun
switch (temp[0].ToString())
{
case "Free":
- product_label.Text = "Free";
+ product = "Free";
break;
case "One":
- product_label.Text = "One";
+ product = "One";
break;
case "PWP":
- product_label.Text = "Powerpack";
+ product = "Powerpack";
break;
default:
break;
@@ -62,12 +63,13 @@ namespace autorun
if (tempo == "1")
{
- product_label.Text += " " + temp[1].TrimEnd('1').ToString() + " Spring";
+ MessageBox.Show("toto");
+ product_label.Text = product + " " + temp[1].TrimEnd('1').ToString() + " Spring";
version = temp[1].TrimEnd('1').ToString() + ".1";
}
else
{
- product_label.Text += " " + temp[1].ToString();
+ product_label.Text = product + " " + temp[1].ToString();
version = temp[1].TrimEnd('1').ToString() + ".0";
}
if (temp[0].ToString() == "One")
@@ -83,10 +85,10 @@ namespace autorun
arch_label.Text = "32-bit";
break;
case "x":
- product_label.Text = "64-bit";
+ arch_label.Text = "64-bit";
break;
case "d":
- product_label.Text = "Dual Arch";
+ arch_label.Text = "Dual Arch";
break;
default:
break;