Add superinterface IDialogController for IMainFormForConfig/Tools
This commit is contained in:
parent
b243ea0d6a
commit
2295d47192
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue