Kaynağa Gözat

Fixed Database Configuration Screen Size

Frank van den Bos 2 yıl önce
ebeveyn
işleme
0b2e851a21

+ 2 - 1
prs.desktop/Configuration/DataBaseConfiguration.xaml

@@ -14,7 +14,8 @@
         Margin="5" 
         SizeToContent="Height" 
         WindowStartupLocation="CenterScreen"
-        >
+        MaxHeight="700"
+>
     <Window.Resources>
         
         <!--<Style TargetType="{x:Type ListBoxItem}">

+ 7 - 2
prs.desktop/Configuration/DataBaseConfiguration.xaml.cs

@@ -98,8 +98,13 @@ namespace PRSDesktop
             AddProfile.Background = new ImageBrush(PRSDesktop.Resources.add.AsBitmapImage());
             DeleteProfile.Background = new ImageBrush(PRSDesktop.Resources.delete.AsBitmapImage());
             _settings = new LocalConfiguration<DatabaseSettings>().LoadAll();
-            Setup();
 
+        }
+
+        public override void OnApplyTemplate()
+        {
+            base.OnApplyTemplate();
+            Setup();
             bLoading = false;
         }
 
@@ -527,7 +532,7 @@ namespace PRSDesktop
                 Client.Close();
                 Progress.Close();
 
-                MessageBox.Show("Server found at {0}", String.Join(";",autodiscover.URLs));
+                MessageBox.Show(String.Format("Server found at {0}", String.Join(";",autodiscover.URLs)));
                 UnloadSettings();
             }
             catch (Exception err)