forked from joyrider3774/PlayniteSound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlayniteSoundsSettingsView.xaml.cs
65 lines (53 loc) · 1.66 KB
/
PlayniteSoundsSettingsView.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System.Windows;
namespace PlayniteSounds
{
public partial class PlayniteSoundsSettingsView
{
private readonly PlayniteSounds _plugin;
public PlayniteSoundsSettingsView(PlayniteSounds plugin)
{
_plugin = plugin;
InitializeComponent();
}
private void ButReloadAudio_Click(object sender, RoutedEventArgs e)
{
_plugin.ReloadAudioFiles();
}
private void ButOpenSoundsFolder_Click(object sender, RoutedEventArgs e)
{
_plugin.OpenSoundsFolder();
}
private void ButOpenMusicFolder_Click(object sender, RoutedEventArgs e)
{
_plugin.OpenMusicFolder();
}
private void ButOpenInfo_Click(object sender, RoutedEventArgs e)
{
_plugin.HelpMenu();
}
private void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
_plugin.ResetMusicVolume();
}
private void ButSaveSounds_Click(object sender, RoutedEventArgs e)
{
_plugin.SaveSounds();
}
private void ButLoadSounds_Click(object sender, RoutedEventArgs e)
{
_plugin.LoadSounds();
}
private void ButImportSounds_Click(object sender, RoutedEventArgs e)
{
_plugin.ImportSounds();
}
private void ButRemoveSounds_Click(object sender, RoutedEventArgs e)
{
_plugin.RemoveSounds();
}
private void ButOpenSoundManagerFolder_Click(object sender, RoutedEventArgs e)
{
_plugin.OpenSoundManagerFolder();
}
}
}