Add superinterface IDialogController for IMainFormForConfig/Tools

This commit is contained in:
YoshiRulz 2020-12-01 02:59:22 +10:00 committed by James Groom
parent b243ea0d6a
commit 2295d47192
3 changed files with 17 additions and 10 deletions

View File

@ -0,0 +1,15 @@
#nullable enable
using System.Windows.Forms;
namespace BizHawk.Client.EmuHawk
{
public interface IDialogController
{
DialogResult ShowDialogAsChild(Form dialog);
void StartSound();
void StopSound();
}
}

View File

@ -5,7 +5,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Client.EmuHawk
{
public interface IMainFormForConfig
public interface IMainFormForConfig : IDialogController
{
/// <remarks>only referenced from <see cref="GenericCoreConfig"/></remarks>
IEmulator Emulator { get; }
@ -20,7 +20,5 @@ namespace BizHawk.Client.EmuHawk
void PutCoreSettings(object o);
void PutCoreSyncSettings(object o);
DialogResult ShowDialogAsChild(Form dialog);
}
}

View File

@ -7,7 +7,7 @@ using BizHawk.Emulation.Common;
namespace BizHawk.Client.EmuHawk
{
public interface IMainFormForTools
public interface IMainFormForTools : IDialogController
{
CheatCollection CheatList { get; }
@ -90,9 +90,6 @@ namespace BizHawk.Client.EmuHawk
/// <remarks>only referenced from <see cref="TAStudio"/></remarks>
void SetWindowText();
/// <remarks>only referenced from <see cref="VideoWriterChooserForm"/></remarks>
DialogResult ShowDialogAsChild(Form dialog);
bool StartNewMovie(IMovie movie, bool record);
/// <remarks>only referenced from <see cref="TAStudio"/></remarks>
@ -114,8 +111,5 @@ namespace BizHawk.Client.EmuHawk
/// <remarks>only referenced from <see cref="BookmarksBranchesBox"/></remarks>
void UpdateStatusSlots();
void StartSound();
void StopSound();
}
}