-
Notifications
You must be signed in to change notification settings - Fork 0
/
PlaylistConsoleForm.xaml.cs
58 lines (41 loc) · 1.5 KB
/
PlaylistConsoleForm.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
using System;
using System.Windows;
namespace MapleDesktop2._0
{
/// <summary>
/// Interaction logic for PlaylistConsoleForm.xaml
/// </summary>
public partial class PlaylistConsoleForm : Window
{
internal static int playlistTrack = 0;
public PlaylistConsoleForm()
{
InitializeComponent();
}
private void btn_ClearPlaylist_Click(object sender, EventArgs e)
{
ClearPlaylistConsole();
MainWindow.music.ClearAudioPlaylist();
}
public void WriteToPlaylistConsole(string message)
{
rtb_PlaylistConsole.AppendText(Environment.NewLine + message);
}
public void ClearPlaylistConsole()
{
rtb_PlaylistConsole.Document.Blocks.Clear();
}
private void btn_GoToTrack_Click(object sender, RoutedEventArgs e)
{
if (txb_playlistTrackSelect.Text != "")
{
MainWindow.music.selectedPlaylistTrack = Int32.Parse(txb_playlistTrackSelect.Text);
MainWindow.currentMusicForm.WriteToDebugConsole("txb_playlist.text" + txb_playlistTrackSelect.Text);
MainWindow.currentMusicForm.WriteToDebugConsole("selectedPlaylistTrack" + MainWindow.music.selectedPlaylistTrack.ToString());
MainWindow.music.userpressedGo = true;
MainWindow.wavePlayer.Stop();
// MainWindow.music.PlayPlaylistTrack(sender, e);
}
}
}
}