Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed overlapping menus
  • Loading branch information
Firewolf1337 committed Jul 11, 2024
1 parent 97ccbba commit daebd69
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion RCRCustomSeries/RCRCustomSeries.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Text.Json" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions RCRPlanner/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Text.Json" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.4" newVersion="8.0.0.4" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<userSettings>
Expand Down
13 changes: 8 additions & 5 deletions RCRPlanner/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@
<CheckBox x:Name="cbMenu3" Grid.Column="2" Grid.Row="0" Height="30" Click="cbMenu3_Click" />
<DockPanel x:Name="dpMenu3" Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="2" Background="Transparent" Width="Auto" HorizontalAlignment="Left">
<Label x:Name="lbMenu3" Style="{StaticResource DefaultLabelStyle}"/>
<DockPanel x:Name="dpDPMenu3" Width="Auto" HorizontalAlignment="Left">
<DatePicker Template="{DynamicResource DatePickerTemplate1}" x:Name="dpMenu3date" VerticalAlignment="Center" Text="Date" BorderThickness="0" Style="{StaticResource DateTimeCalendar}" SelectedDateFormat="Short" SelectedDateChanged="dpMenu3date_SelectedDateChanged"/>
<Button x:Name="btnDateLower" Content="" Click="btnDateLower_Click"/>
<Button x:Name="btnDateHigher" Content="" Click="btnDateHigher_Click"/>
</DockPanel>
<ComboBox x:Name="ddMenu3" Height="25" Width="100" SelectionChanged="ddMenu3_SelectionChanged">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
Expand All @@ -73,6 +68,14 @@
</ComboBox.ItemsPanel>
</ComboBox>
</DockPanel>
<DockPanel x:Name="dpMenu3Date" Grid.Column="2" Grid.Row="0" Grid.ColumnSpan="2" Background="Transparent" Width="Auto" HorizontalAlignment="Left">
<Label x:Name="lbMenu3Date" Style="{StaticResource DefaultLabelStyle}"/>
<DockPanel x:Name="dpDPMenu3" Width="Auto" HorizontalAlignment="Left">
<DatePicker Template="{DynamicResource DatePickerTemplate1}" x:Name="dpMenu3date" VerticalAlignment="Center" Text="Date" BorderThickness="0" Style="{StaticResource DateTimeCalendar}" SelectedDateFormat="Short" SelectedDateChanged="dpMenu3date_SelectedDateChanged"/>
<Button x:Name="btnDateLower" Content="" Click="btnDateLower_Click"/>
<Button x:Name="btnDateHigher" Content="" Click="btnDateHigher_Click"/>
</DockPanel>
</DockPanel>
<CheckBox x:Name="cbMenu4" Grid.Column="3" Grid.Row="0" Height="30" Click="cbMenu4_Click"/>
<DockPanel x:Name="dpMenu4" Grid.Column="3" Grid.Row="0" Grid.ColumnSpan="2" Background="Transparent" Width="Auto" HorizontalAlignment="Left">
<Label x:Name="lbMenu4" Style="{StaticResource DefaultLabelStyle}"/>
Expand Down
17 changes: 12 additions & 5 deletions RCRPlanner/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2406,6 +2406,7 @@ private void btnLoadCars_Click(object sender, RoutedEventArgs e)
lbMenu2.Visibility = Visibility.Hidden;
cbMenu3.Visibility = Visibility.Hidden;
dpMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
cbMenu4.Visibility = Visibility.Visible;
dpMenu4.Visibility = Visibility.Hidden;
cbMenu5.Visibility = Visibility.Visible;
Expand Down Expand Up @@ -2442,6 +2443,7 @@ private void btnLoadTracks_Click(object sender, RoutedEventArgs e)
lbMenu2.Visibility = Visibility.Hidden;
cbMenu3.Visibility = Visibility.Hidden;
dpMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
cbMenu4.Visibility = Visibility.Visible;
dpMenu4.Visibility = Visibility.Hidden;
cbMenu5.Visibility = Visibility.Visible;
Expand Down Expand Up @@ -2477,6 +2479,7 @@ private void btnLoadPurchase_Click(object sender, RoutedEventArgs e)
lbMenu2.Visibility = Visibility.Hidden;
cbMenu3.Visibility = Visibility.Hidden;
dpMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
cbMenu4.Visibility = Visibility.Hidden;
dpMenu4.Visibility = Visibility.Hidden;
cbMenu5.Visibility = Visibility.Hidden;
Expand Down Expand Up @@ -2506,6 +2509,7 @@ private void btnLoadSeries_Click(object sender, RoutedEventArgs e)
lbMenu2.Visibility = Visibility.Hidden;
cbMenu3.Visibility = Visibility.Hidden;
dpMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
cbMenu4.Visibility = Visibility.Visible;
dpMenu4.Visibility = Visibility.Hidden;
cbMenu5.Visibility = Visibility.Visible;
Expand Down Expand Up @@ -2540,8 +2544,8 @@ private void btnLoadRaces_Click(object sender, RoutedEventArgs e)
dpMenu2.Visibility = Visibility.Visible;
lbMenu2.Visibility = Visibility.Visible;
cbMenu3.Visibility = Visibility.Hidden;
dpMenu3.Visibility = Visibility.Visible;
dpDPMenu3.Visibility = Visibility.Visible;
dpMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Visible;
ddMenu3.Visibility = Visibility.Hidden;
cbMenu4.Visibility = Visibility.Hidden;
cbMenu5.Visibility = Visibility.Hidden;
Expand All @@ -2556,7 +2560,7 @@ private void btnLoadRaces_Click(object sender, RoutedEventArgs e)
ddMenu2.ItemsSource = cbAlarms;
ddMenu2.SelectedIndex = Properties.Settings.Default.defaultTimer;
lbMenu2.Content = "Alarm offset:";
lbMenu3.Content = "Date:";
lbMenu3Date.Content = "Date:";

stackPanelMenuClose_MouseDown(null, null);

Expand All @@ -2571,7 +2575,7 @@ private void btnPartStats_Click(object sender, RoutedEventArgs e)
dpMenu2.Visibility = Visibility.Visible;
lbMenu2.Visibility = Visibility.Visible;
dpMenu3.Visibility = Visibility.Visible;
dpDPMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
ddMenu3.Visibility = Visibility.Visible;
dpMenu4.Visibility = Visibility.Visible;
dpMenu5.Visibility = Visibility.Visible;
Expand Down Expand Up @@ -2610,7 +2614,7 @@ private void btniRatingStats_Click(object sender, RoutedEventArgs e)
dpMenu2.Visibility = Visibility.Visible;
lbMenu2.Visibility = Visibility.Visible;
dpMenu3.Visibility = Visibility.Visible;
dpDPMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
ddMenu3.Visibility = Visibility.Visible;
dpMenu4.Visibility = Visibility.Visible;
dpMenu5.Visibility = Visibility.Hidden;
Expand Down Expand Up @@ -2651,6 +2655,7 @@ private void btnLoadAutoStart_Click(object sender, RoutedEventArgs e)
lbMenu2.Visibility = Visibility.Hidden;
cbMenu3.Visibility = Visibility.Visible;
dpMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
cbMenu4.Visibility = Visibility.Visible;
dpMenu4.Visibility = Visibility.Hidden;
cbMenu5.Visibility = Visibility.Visible;
Expand Down Expand Up @@ -2690,6 +2695,7 @@ private void btnLoadSeasonOverview_Click(object sender, RoutedEventArgs e)
lbMenu2.Visibility = Visibility.Hidden;
cbMenu3.Visibility = Visibility.Hidden;
dpMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
cbMenu4.Visibility = Visibility.Hidden;
cbMenu5.Visibility = Visibility.Hidden;
dpMenu4.Visibility = Visibility.Hidden;
Expand All @@ -2716,6 +2722,7 @@ private void btnParnter_Click(object sender, RoutedEventArgs e)
lbMenu2.Visibility = Visibility.Hidden;
cbMenu3.Visibility = Visibility.Hidden;
dpMenu3.Visibility = Visibility.Hidden;
dpMenu3Date.Visibility = Visibility.Hidden;
cbMenu4.Visibility = Visibility.Hidden;
cbMenu5.Visibility = Visibility.Hidden;
dpMenu4.Visibility = Visibility.Hidden;
Expand Down
4 changes: 2 additions & 2 deletions RCRPlanner/RCRPlanner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
<Reference Include="System.Text.Encodings.Web, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Text.Encodings.Web.8.0.0\lib\net462\System.Text.Encodings.Web.dll</HintPath>
</Reference>
<Reference Include="System.Text.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Text.Json.8.0.0\lib\net462\System.Text.Json.dll</HintPath>
<Reference Include="System.Text.Json, Version=8.0.0.4, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Text.Json.8.0.4\lib\net462\System.Text.Json.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion RCRPlanner/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
<package id="System.Runtime.CompilerServices.Unsafe" version="7.0.0-preview.2.22152.2" targetFramework="net472" />
<package id="System.Text.Encodings.Web" version="8.0.0" targetFramework="net472" />
<package id="System.Text.Json" version="8.0.0" targetFramework="net472" />
<package id="System.Text.Json" version="8.0.4" targetFramework="net472" />
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
</packages>

0 comments on commit daebd69

Please sign in to comment.