123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- <wpf:ThemableWindow x:Class="PRSDesktop.DataBaseConfiguration"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:system="clr-namespace:System;assembly=System.Runtime"
- xmlns:classes="clr-namespace:Comal.Classes;assembly=PRSClasses"
- xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
- xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- mc:Ignorable="d"
- Title="System Configuration"
- Width="750"
- Margin="5"
- SizeToContent="Height"
- WindowStartupLocation="CenterScreen"
- >
- <Window.Resources>
-
- <!--<Style TargetType="{x:Type ListBoxItem}">
- <Style.Triggers>
- <Trigger Property="IsFocused" Value="True">
- <Setter Property="Background" Value="LightGreen" />
- </Trigger>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Background" Value="LightGreen" />
- </Trigger>
- <Trigger Property="IsFocused" Value="False">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- </Style.Triggers>
- </Style>-->
-
- </Window.Resources>
- <Grid Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0" Grid.Column="0" BorderBrush="Gray" BorderThickness="0.75" Background="WhiteSmoke"
- CornerRadius="5,5,0,0">
- <Label Content="Profiles" HorizontalContentAlignment="Center" FontWeight="Bold" />
- </Border>
- <ListBox
- Grid.Column="0"
- Grid.Row="1"
- x:Name="Profiles"
- BorderThickness="0.75,0.75,0.75,0.75"
- BorderBrush="Gray"
- HorizontalContentAlignment="Stretch"
- Background="White"
- SelectionChanged="Profiles_SelectionChanged"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border BorderBrush="Gray" BorderThickness="0.75" Background="WhiteSmoke" CornerRadius="5"
- Margin="-2,1,-2,1" Padding="5" Height="50">
- <TextBlock Text="{Binding}" TextAlignment="Center" TextWrapping="Wrap"
- VerticalAlignment="Center" />
- </Border>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- <Border Grid.Row="2" Grid.Column="0" Background="WhiteSmoke" Height="28" BorderBrush="Gray"
- BorderThickness="0.75,0,0.75,0.75" CornerRadius="0,0,5,5" Padding="2">
- <DockPanel>
- <Border x:Name="AddProfile" DockPanel.Dock="Left" Width="26" BorderThickness="0"
- MouseUp="AddProfile_MouseUp" />
- <Border x:Name="DeleteProfile" DockPanel.Dock="Right" Width="26" BorderThickness="0"
- MouseUp="DeleteProfile_MouseUp" />
- <Label DockPanel.Dock="Left" />
- </DockPanel>
- </Border>
- <Grid Grid.Column="1" Grid.Row="0" Grid.RowSpan="3" Margin="5,0,0,0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="35*" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray" BorderThickness="0.75"
- Background="WhiteSmoke" CornerRadius="5,5,0,0">
- <Label Content="General" Padding="10,5,5,5" VerticalContentAlignment="Center"
- HorizontalContentAlignment="Left" FontWeight="Bold" />
- </Border>
- <Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray"
- BorderThickness="0.75,0,0.75,0.75" Background="WhiteSmoke" CornerRadius="0,0,5,5" Padding="5">
- <DockPanel Margin="5,5,5,0">
-
- <Button x:Name="CreateLink" DockPanel.Dock="Right" Content="Create Link" Padding="10,0"
- Click="CreateLink_Click" Margin="5,0,0,0" />
- <CheckBox x:Name="IsActive" DockPanel.Dock="Right" Content="Active?" VerticalAlignment="Center"
- Margin="5,0,5,0" Checked="IsActive_Checked" Unchecked="IsActive_Checked" />
- <Label DockPanel.Dock="Left" Content="Name" VerticalContentAlignment="Center" Width="50" />
- <TextBox x:Name="ProfileName" DockPanel.Dock="Left" VerticalContentAlignment="Center"
- Background="LightYellow" Margin="5,0,5,0" TextChanged="ProfileName_TextChanged" />
- </DockPanel>
- </Border>
- <Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray" BorderThickness="0.75"
- Background="WhiteSmoke" CornerRadius="5,5,0,0" Margin="0,5,0,0">
- <Label Content="Database Settings" Padding="10,5,5,5" VerticalContentAlignment="Center"
- HorizontalContentAlignment="Left" FontWeight="Bold" />
- </Border>
- <Border Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray"
- BorderThickness="0.75,0,0.75,0.75" Background="WhiteSmoke" CornerRadius="0,0,5,5" Padding="5">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" x:Name="StandaloneHeader" />
- <RowDefinition Height="Auto" x:Name="StandalonePath" />
- <RowDefinition Height="Auto" x:Name="NetworkHeader" />
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto" x:Name="LocalHeader"/>
- <RowDefinition Height="Auto" x:Name="LocalSelectionRow"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <RadioButton x:Name="StandaloneOption" Grid.Row="0" Grid.Column="0"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
- Checked="Option_Checked" />
- <DockPanel Grid.Row="0" Grid.Column="1" Margin="5">
- <Label DockPanel.Dock="Left" Content="Standalone" VerticalContentAlignment="Center"
- PreviewMouseDown="StandaloneLabel_Click" />
- </DockPanel>
- <Grid Grid.Row="1" Grid.Column="1" Margin="5,0,5,5">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
-
- <Label Grid.Row="0" Grid.Column="0" Content="Database Location" VerticalContentAlignment="Center" />
- <DockPanel Grid.Row="0" Grid.Column="1">
- <Button x:Name="DBButton" DockPanel.Dock="Right" Content=".." Width="25" Click="DBButton_Click"
- Margin="5,0,0,0"/>
-
- <!-- <ComboBox x:Name="DbProvider" DockPanel.Dock="Right" Visibility="Collapsed" Width="70" -->
- <!-- VerticalContentAlignment="Center" SelectedIndex="0" Margin="5,0,0,0" -->
- <!-- SelectionChanged="DbProvider_SelectionChanged" IsEnabled="False"> -->
- <!-- ~1~<ListBoxItem Content="LiteDb"/>@1@ -->
- <!-- ~1~<ListBoxItem Content="MongoDb"/>@1@ -->
- <!-- <ListBoxItem Content="SQLite" /> -->
- <!-- </ComboBox> -->
- <TextBox x:Name="DBLocation" DockPanel.Dock="Left" VerticalContentAlignment="Center"
- Background="LightYellow" Margin="5,0,0,0" />
- </DockPanel>
-
- <Label x:Name="ColorScheme_Label" Grid.Row="1" Grid.Column="0" Content="Color Scheme" VerticalContentAlignment="Center" />
- <DockPanel Grid.Row="1" Grid.Column="1" Margin="0,5,0,0">
-
- <Button x:Name="SplashView" DockPanel.Dock="Right" Content=".." Width="25"
- Click="SplashView_Click" Margin="5,0,0,0" />
- <Button x:Name="SplashSelect" DockPanel.Dock="Right" Content="Select" Width="100"
- Click="SplashSelect_Click" Margin="5,0,0,0" />
- <Label DockPanel.Dock="Right" Content="Logo" VerticalContentAlignment="Center" Margin="5,0,0,0" />
-
- <xctk:ColorPicker x:Name="ColorScheme" DockPanel.Dock="Left" Margin="5,0,0,0"
- Background="LightYellow"
- SelectedColorChanged="ColorScheme_OnSelectedColorChanged" />
- </DockPanel>
-
- </Grid>
-
- <RadioButton x:Name="NetworkOption" Grid.Row="2" Grid.Column="0"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
- Checked="Option_Checked" />
- <DockPanel Grid.Row="2" Grid.Column="1" Margin="5,0,5,0">
- <Label DockPanel.Dock="Left" Content="Networked" VerticalContentAlignment="Center"
- PreviewMouseDown="NetworkLabel_Click" />
- </DockPanel>
- <DockPanel Grid.Row="3" Grid.Column="1" Margin="5" x:Name="NetworkPath" KeyboardNavigation.TabNavigation="Local">
- <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="Server URL" />
- <ComboBox x:Name="Protocol" DockPanel.Dock="Right" Visibility="Collapsed" SelectedIndex="0"
- Width="100" IsEnabled="False" VerticalContentAlignment="Center"
- TabIndex="0"
- SelectionChanged="Protocol_SelectionChanged">
- <ComboBoxItem Content="Rest" />
- <ComboBoxItem Content="Rpc" />
- </ComboBox>
- <Label DockPanel.Dock="Right" Content="Protocol" VerticalContentAlignment="Center"
- Visibility="Collapsed" />
- <TextBox x:Name="ServerPort" DockPanel.Dock="Right" Width="50"
- VerticalContentAlignment="Center" Background="LightYellow"
- TextChanged="ServerPort_TextChanged" TextAlignment="Center"
- TabIndex="2"/>
- <Label DockPanel.Dock="Right" VerticalContentAlignment="Center" Content="Port" />
- <TextBox x:Name="ServerURL" DockPanel.Dock="Left" VerticalContentAlignment="Center"
- Background="LightYellow" Margin="5,0,0,0" TextChanged="ServerURL_TextChanged"
- TabIndex="1"/>
- </DockPanel>
- <RadioButton x:Name="LocalOption" Grid.Row="4" Grid.Column="0"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
- Checked="Option_Checked" />
- <DockPanel Grid.Row="4" Grid.Column="1" Margin="5">
- <Label DockPanel.Dock="Left" Content="Local" VerticalContentAlignment="Center"
- PreviewMouseDown="LocalLabel_Click"/>
- </DockPanel>
- <DockPanel Grid.Row="5" Grid.Column="1" Margin="5,0,5,5" x:Name="LocalPath">
- <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="Server Name"/>
- <ComboBox x:Name="LocalServerName" DockPanel.Dock="Right"
- VerticalContentAlignment="Center"
- SelectionChanged="LocalServerName_SelectionChanged"/>
- </DockPanel>
- </Grid>
- </Border>
- <Border Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray" BorderThickness="0.75"
- Background="WhiteSmoke" CornerRadius="5,10,0,0" Margin="0,5,0,0">
- <Label Content="User Settings" Padding="5" VerticalContentAlignment="Center"
- HorizontalContentAlignment="Left" FontWeight="Bold" />
- </Border>
- <Border Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray"
- BorderThickness="0.75,0,0.75,0.75" Background="WhiteSmoke" CornerRadius="0,0,5,5" Padding="5">
- <DockPanel Margin="5" KeyboardNavigation.TabNavigation="Local">
- <Label Content="Login Type" DockPanel.Dock="Left" VerticalContentAlignment="Center" />
- <ComboBox x:Name="LoginType" DockPanel.Dock="Left" VerticalContentAlignment="Center" Width="100"
- Margin="5,0,0,0" SelectionChanged="LoginType_SelectionChanged"
- TabIndex="0">
- <ComboBoxItem Content="Network ID" />
- <ComboBoxItem Content="PIN Number" />
- <ComboBoxItem Content="User ID" />
- </ComboBox>
- <Label DockPanel.Dock="Left" Margin="5,0,0,0" Content="User ID" />
- <CheckBox x:Name="AutoLogin" DockPanel.Dock="Right" Margin="5,0,0,0" Content="Auto"
- VerticalContentAlignment="Center" Checked="AutoLogin_Checked"
- Unchecked="AutoLogin_Checked"
- TabIndex="3"/>
- <PasswordBox x:Name="Password" DockPanel.Dock="Right" Margin="5,0,0,0" Width="80"
- Background="LightYellow" VerticalContentAlignment="Center" KeyUp="Password_KeyUp"
- TabIndex="2"/>
- <Label DockPanel.Dock="Right" Content="Password" VerticalContentAlignment="Center" Margin="5,0,0,0" />
- <TextBox x:Name="UserID" DockPanel.Dock="Left" Margin="5,0,0,0" Background="LightYellow"
- VerticalContentAlignment="Center" TextChanged="UserID_TextChanged"
- TabIndex="1"/>
- </DockPanel>
- </Border>
- <Border Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray" BorderThickness="0.75"
- Background="WhiteSmoke" CornerRadius="5,10,0,0" Margin="0,5,0,0">
- <Label Content="External File Locations" Padding="5" VerticalContentAlignment="Center"
- HorizontalContentAlignment="Left" FontWeight="Bold" />
- </Border>
- <Border Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Gray"
- BorderThickness="0.75,0,0.75,0.75" Background="WhiteSmoke" CornerRadius="0,0,5,5" Padding="5">
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <!--<RowDefinition Height="Auto"/>
- <RowDefinition Height="10"/>-->
- <RowDefinition Height="Auto" />
- <RowDefinition Height="10" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="10" x:Name="JobPrefixHeader" />
- <RowDefinition Height="Auto" x:Name="JobPrefixContent" />
- <RowDefinition Height="10" x:Name="POPrefixHeader" />
- <RowDefinition Height="Auto" x:Name="POPrefixContent" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <!--<Label Content="Auto Update" Grid.Row="0" Grid.Column="0" VerticalContentAlignment="Center"/>
- <DockPanel Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" >
- <ComboBox x:Name="UpdateType" DockPanel.Dock="Left" VerticalContentAlignment="Center" Width="50" Margin="5,0,0,0" SelectionChanged="UpdateType_SelectionChanged" >
- <ComboBoxItem Content="Url"/>
- <ComboBoxItem Content="File"/>
- </ComboBox>
- <ComboBox x:Name="UpdateAdmin" DockPanel.Dock="Right" VerticalContentAlignment="Center" Width="70" Margin="5,0,0,0" SelectionChanged="UpdateAdmin_SelectionChanged" ToolTip="Installer Security Privileges" >
- <ComboBoxItem Content="Admin"/>
- <ComboBoxItem Content="Normal"/>
- </ComboBox>
- <ComboBox x:Name="UpdateChannel" DockPanel.Dock="Right" VerticalContentAlignment="Center" Width="90" Margin="5,0,0,0" SelectionChanged="UpdateChannel_SelectionChanged" ToolTip="Select Update Cycle" >
- <ComboBoxItem Content="Stable"/>
- <ComboBoxItem Content="Pre Release"/>
- </ComboBox>
- <Button x:Name="UpdateButton" DockPanel.Dock="Right" Content=".." Width="25" Click="UpdateButton_Click" Margin="5,0,0,0"/>
- <TextBox x:Name="UpdateLocation" DockPanel.Dock="Left" Margin="5,0,0,0" Background="LightYellow" VerticalContentAlignment="Center" TextChanged="UpdateLocation_TextChanged" />
- </DockPanel>-->
- <Label Content="Technical Library" Grid.Row="0" Grid.Column="0" VerticalContentAlignment="Center" />
- <TextBox x:Name="LibraryLocation" Grid.Row="0" Grid.Column="1" VerticalContentAlignment="Center"
- Margin="5,0,0,0" Background="LightYellow" TextChanged="LibraryLocation_TextChanged" />
- <Button x:Name="LibraryButton" Grid.Row="0" Grid.Column="2" Content=".." Width="25"
- Click="LibraryButton_Click" Margin="5,0,0,0" />
- <Label Content="Google API Key" Grid.Row="2" Grid.Column="0" VerticalContentAlignment="Center" />
- <TextBox x:Name="GoogleAPIKey" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
- VerticalContentAlignment="Center" Margin="5,0,0,0" Background="LightYellow"
- TextChanged="GoogleAPIKey_TextChanged" />
- <Label Content="Job Prefix" Grid.Row="4" Grid.Column="0" VerticalContentAlignment="Center" />
- <TextBox x:Name="JobPrefix" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2"
- HorizontalAlignment="Left" Width="150" VerticalContentAlignment="Center" Margin="5,0,0,0"
- Background="LightYellow" TextChanged="JobPrefix_TextChanged" CharacterCasing="Upper" />
- <Label Content="P/O Prefix" Grid.Row="6" Grid.Column="0" VerticalContentAlignment="Center" />
- <TextBox x:Name="PurchaseorderPrefix" Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2"
- HorizontalAlignment="Left" Width="150" VerticalContentAlignment="Center" Margin="5,0,0,0"
- Background="LightYellow" TextChanged="PurchaseOrderPrefix_TextChanged"
- CharacterCasing="Upper" />
- </Grid>
- </Border>
- </Grid>
- <DockPanel Grid.Row="3" Grid.ColumnSpan="2">
- <Button x:Name="Help" DockPanel.Dock="Left" Content="" Width="35" Height="35"
- Padding="5" Click="ShowHelp_OnClick" Margin="0,5,0,0" />
- <Button x:Name="AutoDiscover" DockPanel.Dock="Left" Content="Discover" Width="60" Height="35"
- Padding="5" Click="AutoDiscover_Click" Margin="5,5,0,0" />
- <Button x:Name="AutoUpdate" DockPanel.Dock="Left" Width="35" Height="35" Click="AutoUpdate_Click"
- Margin="5,5,0,0" ToolTip="Auto Update Settings" />
- <Button x:Name="ExportSettings" DockPanel.Dock="Left" Width="35" Height="35" Padding="5"
- Click="Export_Click" Margin="5,5,0,0" ToolTip="Export Settings to File" />
- <Button x:Name="ImportSettings" DockPanel.Dock="Left" Width="35" Height="35" Padding="5"
- Click="Import_Click" Margin="5,5,0,0" ToolTip="Load Settings from File" />
- <Button x:Name="CancelButton" DockPanel.Dock="Right" Content="Cancel" Height="35" Width="80"
- Click="CancelButton_Click" Margin="5,5,0,0" />
- <Button x:Name="OKButton" DockPanel.Dock="Right" Content="OK" Height="35" Width="80" Click="OKButton_Click"
- Margin="5,5,0,0" />
- <Label DockPanel.Dock="Left" />
- </DockPanel>
- </Grid>
- </wpf:ThemableWindow>
|