forked from antonpup/Aurora
-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aytackydln
committed
Aug 30, 2024
1 parent
f40f1df
commit fb73820
Showing
3 changed files
with
44 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 18 additions & 29 deletions
47
Project-Aurora/Project-Aurora/Profiles/Payday 2/Layers/Control_PD2StatesLayer.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,25 @@ | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
|
||
namespace AuroraRgb.Profiles.Payday_2.Layers | ||
namespace AuroraRgb.Profiles.Payday_2.Layers; | ||
|
||
/// <summary> | ||
/// Interaction logic for Control_PD2StatesLayer.xaml | ||
/// </summary> | ||
public partial class Control_PD2StatesLayer | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Control_PD2StatesLayer.xaml | ||
/// </summary> | ||
public partial class Control_PD2StatesLayer : UserControl | ||
public Control_PD2StatesLayer() | ||
{ | ||
private bool settingsset = false; | ||
private bool profileset = false; | ||
|
||
public Control_PD2StatesLayer() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public Control_PD2StatesLayer(PD2StatesLayerHandler datacontext) | ||
{ | ||
this.DataContext = datacontext.Properties; | ||
InitializeComponent(); | ||
} | ||
|
||
private void UserControl_Loaded(object? sender, RoutedEventArgs e) | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
this.Loaded -= UserControl_Loaded; | ||
} | ||
public Control_PD2StatesLayer(PD2StatesLayerHandler datacontext) | ||
{ | ||
DataContext = datacontext.Properties; | ||
InitializeComponent(); | ||
} | ||
|
||
private void sldSwanSongSpeed_ValueChanged(object? sender, RoutedPropertyChangedEventArgs<double> e) | ||
{ | ||
this.lblSwanSongSpeed.Content = $"x {sldSwanSongSpeed.Value.ToString("0.00")}"; | ||
} | ||
private void sldSwanSongSpeed_ValueChanged(object? sender, RoutedPropertyChangedEventArgs<double> e) | ||
{ | ||
lblSwanSongSpeed.Content = $"x {sldSwanSongSpeed.Value:0.00}"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters