1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Drawing;
5 using System.Data;
6 using System.Linq;
7 using System.Text;
8 using System.Threading.Tasks;
9 using System.Windows.Forms;
10 
11 namespace Mesen.GUI.Debugger.Controls
12 {
13 	public partial class ctrlNoiseInfo : UserControl
14 	{
ctrlNoiseInfo()15 		public ctrlNoiseInfo()
16 		{
17 			InitializeComponent();
18 		}
19 
ProcessState(ref ApuNoiseState state)20 		public void ProcessState(ref ApuNoiseState state)
21 		{
22 			chkEnabled.Checked = state.Enabled;
23 			txtPeriod.Text = state.Period.ToString();
24 			txtTimer.Text = state.Timer.ToString();
25 			txtFrequency.Text = ((int)(state.Frequency)).ToString();
26 			txtShiftRegister.Text = state.ShiftRegister.ToString("X4");
27 			txtOutputVolume.Text = state.OutputVolume.ToString();
28 
29 			ctrlLengthCounterInfo.ProcessState(ref state.LengthCounter);
30 			ctrlEnvelopeInfo.ProcessState(ref state.Envelope);
31 		}
32 	}
33 }
34