diff --git a/BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj b/BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj
index 129b4683..e6575f66 100644
--- a/BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj
+++ b/BPASmartClient.SCADAControl/BPASmartClient.SCADAControl.csproj
@@ -12,7 +12,7 @@
-
+
@@ -63,7 +63,7 @@
Always
-
+
Always
diff --git a/BPASmartClient.SCADAControl/CustomerControls/TheDataGrid.xaml.cs b/BPASmartClient.SCADAControl/CustomerControls/TheDataGrid.xaml.cs
index 6709e0dd..ea196adf 100644
--- a/BPASmartClient.SCADAControl/CustomerControls/TheDataGrid.xaml.cs
+++ b/BPASmartClient.SCADAControl/CustomerControls/TheDataGrid.xaml.cs
@@ -30,7 +30,10 @@ namespace BPASmartClient.SCADAControl.CustomerControls
public TheDataGrid()
{
InitializeComponent();
- Style = Application.Current.Resources["DesignTheDataGrid"] as Style;
+ ResourceDictionary languageResDic = new ResourceDictionary();
+ languageResDic.Source = new Uri(@"/BPASmartClient.SCADAControl;component/Themes/Generic.xaml",UriKind.RelativeOrAbsolute);
+ this.Resources.MergedDictionaries.Add(languageResDic);
+ // Style = Application.Current.Resources["DesignTheDataGrid"] as Style;
MinWidth = 100;
MinHeight = 100;
ItemsString =new ItemsListObj()
diff --git a/BPASmartClient.SCADAControl/CustomerControls/TheListBox.xaml.cs b/BPASmartClient.SCADAControl/CustomerControls/TheListBox.xaml.cs
index 53e6e2c6..c05db14a 100644
--- a/BPASmartClient.SCADAControl/CustomerControls/TheListBox.xaml.cs
+++ b/BPASmartClient.SCADAControl/CustomerControls/TheListBox.xaml.cs
@@ -30,7 +30,10 @@ namespace BPASmartClient.SCADAControl.CustomerControls
public TheListBox()
{
InitializeComponent();
- Style = Application.Current.Resources["DesignTheListBox"] as Style;
+ ResourceDictionary languageResDic = new ResourceDictionary();
+ languageResDic.Source = new Uri(@"/BPASmartClient.SCADAControl;component/Themes/Generic.xaml",UriKind.RelativeOrAbsolute);
+ this.Resources.MergedDictionaries.Add(languageResDic);
+ //Style = Application.Current.Resources["DesignTheListBox"] as Style;
MinWidth = 100;
MinHeight = 100;
ItemsString = new ItemsListObj()
diff --git a/BPASmartClient.SCADAControl/Images/btn_normal.png b/BPASmartClient.SCADAControl/Images/btnnormal.png
similarity index 100%
rename from BPASmartClient.SCADAControl/Images/btn_normal.png
rename to BPASmartClient.SCADAControl/Images/btnnormal.png
diff --git a/BPASmartClient.SCADAControl/Themes/Generic.xaml b/BPASmartClient.SCADAControl/Themes/Generic.xaml
index 4f65bdbb..81200c59 100644
--- a/BPASmartClient.SCADAControl/Themes/Generic.xaml
+++ b/BPASmartClient.SCADAControl/Themes/Generic.xaml
@@ -261,8 +261,8 @@
-
-
-
+
+
+
-
-
+
M 0 0 L 3.5 4 L 7 0 Z
+
+
+
-
-
+
-
+