Mesen-X/GUI.NET/Debugger/Controls/ApuViewer/ctrlTriangleInfo.cs

33 lines
819 B
C#
Raw Normal View History

2018-01-01 23:23:18 -05:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesen.GUI.Debugger.Controls
{
public partial class ctrlTriangleInfo : UserControl
{
public ctrlTriangleInfo()
{
InitializeComponent();
}
public void ProcessState(ref ApuTriangleState state)
{
chkEnabled.Checked = state.Enabled;
txtPeriod.Text = state.Period.ToString();
txtTimer.Text = state.Timer.ToString();
txtFrequency.Text = ((int)(state.Frequency)).ToString();
txtSequencePosition.Text = state.SequencePosition.ToString();
txtOutputVolume.Text = state.OutputVolume.ToString();
ctrlLengthCounterInfo.ProcessState(ref state.LengthCounter);
}
}
}