diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index a8badd9..6e1d055 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index a8badd9..6e1d055 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmLogin.cs b/FrmLogin.cs
index e05a967..294cf14 100644
--- a/FrmLogin.cs
+++ b/FrmLogin.cs
@@ -1,6 +1,7 @@
using System;
using System.Data;
using System.Data.OracleClient;
+using System.Drawing;
using System.IO;
using System.Net;
using System.Text;
@@ -114,8 +115,8 @@
}
private void FrmLogin_Load(object sender, EventArgs e)
- {
-
+ {//global::Cyberpipe.Properties.Resources.登录页3;
+ this.pictureBox1.BackgroundImage = Image.FromFile(Application.StartupPath + Utility.LoginImgPath); ;
Utility.SetParams();
StartPosition = FormStartPosition.CenterScreen;
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index a8badd9..6e1d055 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmLogin.cs b/FrmLogin.cs
index e05a967..294cf14 100644
--- a/FrmLogin.cs
+++ b/FrmLogin.cs
@@ -1,6 +1,7 @@
using System;
using System.Data;
using System.Data.OracleClient;
+using System.Drawing;
using System.IO;
using System.Net;
using System.Text;
@@ -114,8 +115,8 @@
}
private void FrmLogin_Load(object sender, EventArgs e)
- {
-
+ {//global::Cyberpipe.Properties.Resources.登录页3;
+ this.pictureBox1.BackgroundImage = Image.FromFile(Application.StartupPath + Utility.LoginImgPath); ;
Utility.SetParams();
StartPosition = FormStartPosition.CenterScreen;
diff --git a/FrmLogin.designer.cs b/FrmLogin.designer.cs
index f44eb4c..6579a98 100644
--- a/FrmLogin.designer.cs
+++ b/FrmLogin.designer.cs
@@ -50,9 +50,10 @@
this.btnAddPipeline2.Text = "添加管线";
//
// pictureBox1
- //
+ // this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
+ //
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
- this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
+// this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.ErrorImage = null;
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index a8badd9..6e1d055 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmLogin.cs b/FrmLogin.cs
index e05a967..294cf14 100644
--- a/FrmLogin.cs
+++ b/FrmLogin.cs
@@ -1,6 +1,7 @@
using System;
using System.Data;
using System.Data.OracleClient;
+using System.Drawing;
using System.IO;
using System.Net;
using System.Text;
@@ -114,8 +115,8 @@
}
private void FrmLogin_Load(object sender, EventArgs e)
- {
-
+ {//global::Cyberpipe.Properties.Resources.登录页3;
+ this.pictureBox1.BackgroundImage = Image.FromFile(Application.StartupPath + Utility.LoginImgPath); ;
Utility.SetParams();
StartPosition = FormStartPosition.CenterScreen;
diff --git a/FrmLogin.designer.cs b/FrmLogin.designer.cs
index f44eb4c..6579a98 100644
--- a/FrmLogin.designer.cs
+++ b/FrmLogin.designer.cs
@@ -50,9 +50,10 @@
this.btnAddPipeline2.Text = "添加管线";
//
// pictureBox1
- //
+ // this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
+ //
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
- this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
+// this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.ErrorImage = null;
diff --git a/Utility.cs b/Utility.cs
index 4c0733f..fe13d93 100644
--- a/Utility.cs
+++ b/Utility.cs
@@ -89,6 +89,7 @@
public static LayerConfig LayerConfig;
+ public static string LoginImgPath;
public static string RoleServer;
public static string TitleImagePath;
public static string SysnameVersion;
@@ -617,10 +618,14 @@
{
LegendImgPath = xmlReader.ReadElementString();
}
- else if (xmlReader.Name.Equals("appId"))
+ else if (xmlReader.Name.Equals("appid"))
{
AppId = xmlReader.ReadElementString();
}
+ else if (xmlReader.Name.Equals("loginimgpath"))
+ {
+ LoginImgPath = xmlReader.ReadElementString();
+ }
}
}
diff --git a/Cyberpipe.suo b/Cyberpipe.suo
index a8badd9..6e1d055 100644
--- a/Cyberpipe.suo
+++ b/Cyberpipe.suo
Binary files differ
diff --git a/FrmLogin.cs b/FrmLogin.cs
index e05a967..294cf14 100644
--- a/FrmLogin.cs
+++ b/FrmLogin.cs
@@ -1,6 +1,7 @@
using System;
using System.Data;
using System.Data.OracleClient;
+using System.Drawing;
using System.IO;
using System.Net;
using System.Text;
@@ -114,8 +115,8 @@
}
private void FrmLogin_Load(object sender, EventArgs e)
- {
-
+ {//global::Cyberpipe.Properties.Resources.登录页3;
+ this.pictureBox1.BackgroundImage = Image.FromFile(Application.StartupPath + Utility.LoginImgPath); ;
Utility.SetParams();
StartPosition = FormStartPosition.CenterScreen;
diff --git a/FrmLogin.designer.cs b/FrmLogin.designer.cs
index f44eb4c..6579a98 100644
--- a/FrmLogin.designer.cs
+++ b/FrmLogin.designer.cs
@@ -50,9 +50,10 @@
this.btnAddPipeline2.Text = "添加管线";
//
// pictureBox1
- //
+ // this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
+ //
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
- this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
+// this.pictureBox1.BackgroundImage = global::Cyberpipe.Properties.Resources.登录页3;
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.ErrorImage = null;
diff --git a/Utility.cs b/Utility.cs
index 4c0733f..fe13d93 100644
--- a/Utility.cs
+++ b/Utility.cs
@@ -89,6 +89,7 @@
public static LayerConfig LayerConfig;
+ public static string LoginImgPath;
public static string RoleServer;
public static string TitleImagePath;
public static string SysnameVersion;
@@ -617,10 +618,14 @@
{
LegendImgPath = xmlReader.ReadElementString();
}
- else if (xmlReader.Name.Equals("appId"))
+ else if (xmlReader.Name.Equals("appid"))
{
AppId = xmlReader.ReadElementString();
}
+ else if (xmlReader.Name.Equals("loginimgpath"))
+ {
+ LoginImgPath = xmlReader.ReadElementString();
+ }
}
}
diff --git a/bin/x86/Debug/Config.xml b/bin/x86/Debug/Config.xml
index bd2dc1d..5279e02 100644
--- a/bin/x86/Debug/Config.xml
+++ b/bin/x86/Debug/Config.xml
@@ -24,9 +24,9 @@
http://127.0.0.1/Cyberpipe.msi
http://127.0.0.1/Config.xml
-
+/Resource/登录页.png
http://192.168.0.102:8080/ctrl
- 21
+ 21
/Resource/title.jpg
/Resource/图例P.jpg
智慧太湖新城管网规划分析系统6.0