Fix missing UI usings.
This commit is contained in:
parent
17701dc57d
commit
39b54f7202
|
@ -192,7 +192,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void btnBizBox_Click(object sender, EventArgs e)
|
private void btnBizBox_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new BizBox().ShowDialog();
|
using var bizBox = new BizBox();
|
||||||
|
bizBox.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
base.OnPaint(e);
|
base.OnPaint(e);
|
||||||
e.Graphics.Clear(SystemColors.Control);
|
e.Graphics.Clear(SystemColors.Control);
|
||||||
Font font = new Font(new FontFamily("Courier New"), 8);
|
using var font = new Font(new FontFamily("Courier New"), 8);
|
||||||
e.Graphics.DrawString(Text, font, Brushes.Black,0,0);
|
e.Graphics.DrawString(Text, font, Brushes.Black,0,0);
|
||||||
font.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Text
|
public override string Text
|
||||||
|
|
|
@ -131,9 +131,8 @@ namespace BizHawk.Client.EmuHawk.WinFormExtensions
|
||||||
public static DialogResult ShowHawkDialog(this CommonDialog form)
|
public static DialogResult ShowHawkDialog(this CommonDialog form)
|
||||||
{
|
{
|
||||||
GlobalWin.Sound.StopSound();
|
GlobalWin.Sound.StopSound();
|
||||||
var tempForm = new Form() { TopMost = true };
|
using var tempForm = new Form() { TopMost = true };
|
||||||
var result = form.ShowDialog(tempForm);
|
var result = form.ShowDialog(tempForm);
|
||||||
tempForm.Dispose();
|
|
||||||
GlobalWin.Sound.StartSound();
|
GlobalWin.Sound.StartSound();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,7 +142,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void AddToGameDbBtn_Click(object sender, EventArgs e)
|
private void AddToGameDbBtn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var picker = new RomStatusPicker();
|
using var picker = new RomStatusPicker();
|
||||||
var result = picker.ShowDialog();
|
var result = picker.ShowDialog();
|
||||||
if (result == DialogResult.OK)
|
if (result == DialogResult.OK)
|
||||||
{
|
{
|
||||||
|
|
|
@ -312,7 +312,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void OpenAdvancedMenuItem_Click(object sender, EventArgs e)
|
private void OpenAdvancedMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var oac = new OpenAdvancedChooser(this);
|
using var oac = new OpenAdvancedChooser(this);
|
||||||
if (oac.ShowHawkDialog() == DialogResult.Cancel)
|
if (oac.ShowHawkDialog() == DialogResult.Cancel)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
@ -355,7 +355,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
/*************************/
|
/*************************/
|
||||||
/* CLONE OF CODE FROM OpenRom (mostly) */
|
/* CLONE OF CODE FROM OpenRom (mostly) */
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = PathManager.GetRomsPath(Emulator.SystemId),
|
InitialDirectory = PathManager.GetRomsPath(Emulator.SystemId),
|
||||||
Filter = filter,
|
Filter = filter,
|
||||||
|
@ -489,12 +489,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
// Inaccurate core but allow the user to continue anyway
|
// Inaccurate core but allow the user to continue anyway
|
||||||
}
|
}
|
||||||
|
|
||||||
new RecordMovie(Emulator).ShowDialog();
|
using var form = new RecordMovie(Emulator);
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PlayMovieMenuItem_Click(object sender, EventArgs e)
|
private void PlayMovieMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new PlayMovie().ShowDialog();
|
using var form = new PlayMovie();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StopMovieMenuItem_Click(object sender, EventArgs e)
|
private void StopMovieMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -509,7 +511,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void ImportMovieMenuItem_Click(object sender, EventArgs e)
|
private void ImportMovieMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = PathManager.GetRomsPath(Emulator.SystemId),
|
InitialDirectory = PathManager.GetRomsPath(Emulator.SystemId),
|
||||||
Multiselect = true,
|
Multiselect = true,
|
||||||
|
@ -646,7 +648,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
var path = $"{PathManager.ScreenshotPrefix(Global.Game)}.{DateTime.Now:yyyy-MM-dd HH.mm.ss}.png";
|
var path = $"{PathManager.ScreenshotPrefix(Global.Game)}.{DateTime.Now:yyyy-MM-dd HH.mm.ss}.png";
|
||||||
|
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = Path.GetDirectoryName(path),
|
InitialDirectory = Path.GetDirectoryName(path),
|
||||||
FileName = Path.GetFileName(path),
|
FileName = Path.GetFileName(path),
|
||||||
|
@ -965,7 +967,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void ControllersMenuItem_Click(object sender, EventArgs e)
|
private void ControllersMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var controller = new ControllerConfig(Emulator.ControllerDefinition);
|
using var controller = new ControllerConfig(Emulator.ControllerDefinition);
|
||||||
if (controller.ShowDialog() == DialogResult.OK)
|
if (controller.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
InitControls();
|
InitControls();
|
||||||
|
@ -975,7 +977,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void HotkeysMenuItem_Click(object sender, EventArgs e)
|
private void HotkeysMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (new HotkeyConfig().ShowDialog() == DialogResult.OK)
|
using var hotkeyConfig = new HotkeyConfig();
|
||||||
|
if (hotkeyConfig.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
InitControls();
|
InitControls();
|
||||||
InputManager.SyncControls();
|
InputManager.SyncControls();
|
||||||
|
@ -986,28 +989,33 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (e is RomLoader.RomErrorArgs args)
|
if (e is RomLoader.RomErrorArgs args)
|
||||||
{
|
{
|
||||||
var result = new FirmwaresConfig(true, args.RomPath).ShowDialog();
|
using var configForm = new FirmwaresConfig(true, args.RomPath);
|
||||||
|
var result = configForm.ShowDialog();
|
||||||
args.Retry = result == DialogResult.Retry;
|
args.Retry = result == DialogResult.Retry;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
new FirmwaresConfig().ShowDialog();
|
using var configForm = new FirmwaresConfig();
|
||||||
|
configForm.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MessagesMenuItem_Click(object sender, EventArgs e)
|
private void MessagesMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new MessageConfig().ShowDialog();
|
using var form = new MessageConfig();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PathsMenuItem_Click(object sender, EventArgs e)
|
private void PathsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new PathConfig().ShowDialog();
|
using var form = new PathConfig();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SoundMenuItem_Click(object sender, EventArgs e)
|
private void SoundMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (new SoundConfig().ShowDialog() == DialogResult.OK)
|
using var form = new SoundConfig();
|
||||||
|
if (form.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
RewireSound();
|
RewireSound();
|
||||||
}
|
}
|
||||||
|
@ -1015,27 +1023,32 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void AutofireMenuItem_Click(object sender, EventArgs e)
|
private void AutofireMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new AutofireConfig().ShowDialog();
|
using var form = new AutofireConfig();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RewindOptionsMenuItem_Click(object sender, EventArgs e)
|
private void RewindOptionsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new RewindConfig().ShowDialog();
|
using var form = new RewindConfig();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FileExtensionsMenuItem_Click(object sender, EventArgs e)
|
private void FileExtensionsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new FileExtensionPreferences().ShowDialog();
|
using var form = new FileExtensionPreferences();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CustomizeMenuItem_Click(object sender, EventArgs e)
|
private void CustomizeMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new EmuHawkOptions().ShowDialog();
|
using var form = new EmuHawkOptions();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ProfilesMenuItem_Click(object sender, EventArgs e)
|
private void ProfilesMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (new ProfileConfig().ShowDialog() == DialogResult.OK)
|
using var form = new ProfileConfig();
|
||||||
|
if (form.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
GlobalWin.OSD.AddMessage("Profile settings saved");
|
GlobalWin.OSD.AddMessage("Profile settings saved");
|
||||||
|
|
||||||
|
@ -1305,7 +1318,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private void SaveConfigAsMenuItem_Click(object sender, EventArgs e)
|
private void SaveConfigAsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var path = PathManager.DefaultIniPath;
|
var path = PathManager.DefaultIniPath;
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = Path.GetDirectoryName(path),
|
InitialDirectory = Path.GetDirectoryName(path),
|
||||||
FileName = Path.GetFileName(path),
|
FileName = Path.GetFileName(path),
|
||||||
|
@ -1331,7 +1344,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private void LoadConfigFromMenuItem_Click(object sender, EventArgs e)
|
private void LoadConfigFromMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var path = PathManager.DefaultIniPath;
|
var path = PathManager.DefaultIniPath;
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = Path.GetDirectoryName(path),
|
InitialDirectory = Path.GetDirectoryName(path),
|
||||||
FileName = Path.GetFileName(path),
|
FileName = Path.GetFileName(path),
|
||||||
|
@ -1507,7 +1520,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void BatchRunnerToolStripMenuItem_Click(object sender, EventArgs e)
|
private void BatchRunnerToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new BatchRun().ShowDialog();
|
using var form = new BatchRun();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void NewHexEditorMenuItem_Click(object sender, EventArgs e)
|
private void NewHexEditorMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -1595,15 +1609,18 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (Emulator is NES)
|
if (Emulator is NES)
|
||||||
{
|
{
|
||||||
new NESGraphicsConfig().ShowDialog(this);
|
using var form = new NESGraphicsConfig();
|
||||||
|
form.ShowDialog(this);
|
||||||
}
|
}
|
||||||
else if (Emulator is SubNESHawk)
|
else if (Emulator is SubNESHawk)
|
||||||
{
|
{
|
||||||
new NESGraphicsConfig().ShowDialog(this);
|
using var form = new NESGraphicsConfig();
|
||||||
|
form.ShowDialog(this);
|
||||||
}
|
}
|
||||||
else if (Emulator is QuickNES)
|
else if (Emulator is QuickNES)
|
||||||
{
|
{
|
||||||
new QuickNesConfig().ShowDialog(this);
|
using var form = new QuickNesConfig();
|
||||||
|
form.ShowDialog(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1616,7 +1633,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (Emulator is NES nes && nes.IsVS)
|
if (Emulator is NES nes && nes.IsVS)
|
||||||
{
|
{
|
||||||
new NesVsSettings().ShowHawkDialog();
|
using var form = new NesVsSettings();
|
||||||
|
form.ShowHawkDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1669,11 +1687,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (Emulator is NES)
|
if (Emulator is NES)
|
||||||
{
|
{
|
||||||
new NesControllerSettings().ShowDialog();
|
using var form = new NesControllerSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
else if (Emulator is SubNESHawk)
|
else if (Emulator is SubNESHawk)
|
||||||
{
|
{
|
||||||
new NesControllerSettings().ShowDialog();
|
using var form = new NesControllerSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
else if (Emulator is QuickNES)
|
else if (Emulator is QuickNES)
|
||||||
{
|
{
|
||||||
|
@ -1719,7 +1739,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void PceGraphicsSettingsMenuItem_Click(object sender, EventArgs e)
|
private void PceGraphicsSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new PCEGraphicsConfig().ShowDialog();
|
using var form = new PCEGraphicsConfig();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PceBgViewerMenuItem_Click(object sender, EventArgs e)
|
private void PceBgViewerMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -1926,7 +1947,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void SMSGraphicsSettingsMenuItem_Click(object sender, EventArgs e)
|
private void SMSGraphicsSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new SMSGraphicsConfig().ShowDialog();
|
using var form = new SMSGraphicsConfig();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GGGameGenieMenuItem_Click(object sender, EventArgs e)
|
private void GGGameGenieMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -1996,7 +2018,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private void LoadTIFileMenuItem_Click(object sender, EventArgs e)
|
private void LoadTIFileMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var ti83 = (TI83)Emulator;
|
var ti83 = (TI83)Emulator;
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = PathManager.GetRomsPath(Emulator.SystemId),
|
InitialDirectory = PathManager.GetRomsPath(Emulator.SystemId),
|
||||||
Filter = "TI-83 Program Files (*.83p,*.8xp)|*.83P;*.8xp|All Files|*.*",
|
Filter = "TI-83 Program Files (*.83p,*.8xp)|*.83P;*.8xp|All Files|*.*",
|
||||||
|
@ -2023,7 +2045,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void TI83PaletteMenuItem_Click(object sender, EventArgs e)
|
private void TI83PaletteMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
GlobalWin.OSD.AddMessage(new TI83PaletteConfig().ShowDialog() == DialogResult.OK
|
using var form = new TI83PaletteConfig();
|
||||||
|
GlobalWin.OSD.AddMessage(form.ShowDialog() == DialogResult.OK
|
||||||
? "Palette settings saved"
|
? "Palette settings saved"
|
||||||
: "Palette config aborted");
|
: "Palette config aborted");
|
||||||
}
|
}
|
||||||
|
@ -2049,12 +2072,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void A7800ControllerSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
private void A7800ControllerSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new A7800ControllerSettings().ShowDialog();
|
using var form = new A7800ControllerSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void A7800FilterSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
private void A7800FilterSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new A7800FilterSettings().ShowDialog();
|
using var form = new A7800FilterSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -2141,7 +2166,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void PSXControllerSettingsMenuItem_Click(object sender, EventArgs e)
|
private void PSXControllerSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new PSXControllerConfigNew().ShowDialog();
|
using var form = new PSXControllerConfigNew();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PSXOptionsMenuItem_Click(object sender, EventArgs e)
|
private void PSXOptionsMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -2160,7 +2186,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void PSXHashDiscsToolStripMenuItem_Click(object sender, EventArgs e)
|
private void PSXHashDiscsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new PSXHashDiscs().ShowDialog();
|
using var form = new PSXHashDiscs();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -2184,7 +2211,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void SNESControllerConfigurationMenuItem_Click(object sender, EventArgs e)
|
private void SNESControllerConfigurationMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new SNESControllerSettings().ShowDialog();
|
using var form = new SNESControllerSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SnesGfxDebuggerMenuItem_Click(object sender, EventArgs e)
|
private void SnesGfxDebuggerMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -2241,7 +2269,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void ColecoControllerSettingsMenuItem_Click(object sender, EventArgs e)
|
private void ColecoControllerSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new ColecoControllerSettings().ShowDialog();
|
using var form = new ColecoControllerSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -2266,7 +2295,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void N64PluginSettingsMenuItem_Click(object sender, EventArgs e)
|
private void N64PluginSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (new N64VideoPluginconfig().ShowDialog() == DialogResult.OK)
|
using var form = new N64VideoPluginconfig();
|
||||||
|
if (form.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
if (Emulator.IsNull())
|
if (Emulator.IsNull())
|
||||||
{
|
{
|
||||||
|
@ -2285,7 +2315,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void N64ControllerSettingsMenuItem_Click(object sender, EventArgs e)
|
private void N64ControllerSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (new N64ControllersSetup().ShowDialog() == DialogResult.OK)
|
using var form = new N64ControllersSetup();
|
||||||
|
if (form.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
FlagNeedsReboot();
|
FlagNeedsReboot();
|
||||||
GlobalWin.OSD.AddMessage("Controller settings saved but a core reboot is required");
|
GlobalWin.OSD.AddMessage("Controller settings saved but a core reboot is required");
|
||||||
|
@ -2502,7 +2533,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void IntVControllerSettingsMenuItem_Click(object sender, EventArgs e)
|
private void IntVControllerSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new IntvControllerSettings().ShowDialog();
|
using var form = new IntvControllerSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -2537,27 +2569,32 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void ZXSpectrumControllerConfigurationMenuItem_Click(object sender, EventArgs e)
|
private void ZXSpectrumControllerConfigurationMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new ZXSpectrumJoystickSettings().ShowDialog();
|
using var form = new ZXSpectrumJoystickSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ZXSpectrumCoreEmulationSettingsMenuItem_Click(object sender, EventArgs e)
|
private void ZXSpectrumCoreEmulationSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new ZXSpectrumCoreEmulationSettings().ShowDialog();
|
using var form = new ZXSpectrumCoreEmulationSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ZXSpectrumNonSyncSettingsMenuItem_Click(object sender, EventArgs e)
|
private void ZXSpectrumNonSyncSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new ZXSpectrumNonSyncSettings().ShowDialog();
|
using var form = new ZXSpectrumNonSyncSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ZXSpectrumAudioSettingsMenuItem_Click(object sender, EventArgs e)
|
private void ZXSpectrumAudioSettingsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new ZXSpectrumAudioSettings().ShowDialog();
|
using var form = new ZXSpectrumAudioSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ZXSpectrumPokeMemoryMenuItem_Click(object sender, EventArgs e)
|
private void ZXSpectrumPokeMemoryMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new ZXSpectrumPokeMemory().ShowDialog();
|
using var form = new ZXSpectrumPokeMemory();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ZXSpectrumMediaMenuItem_DropDownOpened(object sender, EventArgs e)
|
private void ZXSpectrumMediaMenuItem_DropDownOpened(object sender, EventArgs e)
|
||||||
|
@ -2639,7 +2676,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void ZXSpectrumExportSnapshotMenuItemMenuItem_Click(object sender, EventArgs e)
|
private void ZXSpectrumExportSnapshotMenuItemMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var zxSnapExpDialog = new SaveFileDialog
|
using var zxSnapExpDialog = new SaveFileDialog
|
||||||
{
|
{
|
||||||
RestoreDirectory = true
|
RestoreDirectory = true
|
||||||
, Title = "EXPERIMENTAL - Export 3rd party snapshot formats"
|
, Title = "EXPERIMENTAL - Export 3rd party snapshot formats"
|
||||||
|
@ -2670,17 +2707,20 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void amstradCPCCoreEmulationSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
private void amstradCPCCoreEmulationSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new AmstradCPCCoreEmulationSettings().ShowDialog();
|
using var form = new AmstradCPCCoreEmulationSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AmstradCPCAudioSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
private void AmstradCPCAudioSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new AmstradCPCAudioSettings().ShowDialog();
|
using var form = new AmstradCPCAudioSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AmstradCPCPokeMemoryToolStripMenuItem_Click(object sender, EventArgs e)
|
private void AmstradCPCPokeMemoryToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new AmstradCPCPokeMemory().ShowDialog();
|
using var form = new AmstradCPCPokeMemory();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AmstradCPCMediaToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
|
private void AmstradCPCMediaToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
|
||||||
|
@ -2762,7 +2802,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void AmstradCPCNonSyncSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
private void AmstradCPCNonSyncSettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new AmstradCPCNonSyncSettings().ShowDialog();
|
using var form = new AmstradCPCNonSyncSettings();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -2793,11 +2834,13 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (VersionInfo.DeveloperBuild)
|
if (VersionInfo.DeveloperBuild)
|
||||||
{
|
{
|
||||||
new AboutBox().ShowDialog();
|
using var form = new AboutBox();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
new BizBox().ShowDialog();
|
using var form = new BizBox();
|
||||||
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2936,7 +2979,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void DisplayConfigMenuItem_Click(object sender, EventArgs e)
|
private void DisplayConfigMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var window = new DisplayConfigLite();
|
using var window = new DisplayConfigLite();
|
||||||
var result = window.ShowDialog();
|
var result = window.ShowDialog();
|
||||||
if (result == DialogResult.OK)
|
if (result == DialogResult.OK)
|
||||||
{
|
{
|
||||||
|
@ -2969,7 +3012,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (Global.MovieSession.Movie.IsActive)
|
if (Global.MovieSession.Movie.IsActive)
|
||||||
{
|
{
|
||||||
var form = new EditSubtitlesForm { ReadOnly = Global.MovieSession.ReadOnly };
|
using var form = new EditSubtitlesForm { ReadOnly = Global.MovieSession.ReadOnly };
|
||||||
form.GetMovie(Global.MovieSession.Movie);
|
form.GetMovie(Global.MovieSession.Movie);
|
||||||
form.ShowDialog();
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
@ -3015,7 +3058,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
if (Global.MovieSession.Movie.IsActive)
|
if (Global.MovieSession.Movie.IsActive)
|
||||||
{
|
{
|
||||||
var form = new EditCommentsForm();
|
using var form = new EditCommentsForm();
|
||||||
form.GetMovie(Global.MovieSession.Movie);
|
form.GetMovie(Global.MovieSession.Movie);
|
||||||
form.ShowDialog();
|
form.ShowDialog();
|
||||||
}
|
}
|
||||||
|
@ -3112,7 +3155,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
// We do not check if the user is actually setting a profile here.
|
// We do not check if the user is actually setting a profile here.
|
||||||
// This is intentional.
|
// This is intentional.
|
||||||
var profileForm = new ProfileConfig();
|
using var profileForm = new ProfileConfig();
|
||||||
profileForm.ShowDialog();
|
profileForm.ShowDialog();
|
||||||
Global.Config.FirstBoot = false;
|
Global.Config.FirstBoot = false;
|
||||||
ProfileFirstBootLabel.Visible = false;
|
ProfileFirstBootLabel.Visible = false;
|
||||||
|
|
|
@ -30,7 +30,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
catch (MoviePlatformMismatchException ex)
|
catch (MoviePlatformMismatchException ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show(new Form(){TopMost = true}, ex.Message, "Movie/Platform Mismatch", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
using var ownerForm = new Form() { TopMost = true };
|
||||||
|
MessageBox.Show(ownerForm, ex.Message, "Movie/Platform Mismatch", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1293,7 +1293,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public bool RunLibretroCoreChooser()
|
public bool RunLibretroCoreChooser()
|
||||||
{
|
{
|
||||||
var ofd = new OpenFileDialog();
|
using var ofd = new OpenFileDialog();
|
||||||
|
|
||||||
if (Global.Config.LibretroCore != null)
|
if (Global.Config.LibretroCore != null)
|
||||||
{
|
{
|
||||||
|
@ -1625,14 +1625,14 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var writer = new BinaryWriter(new FileStream(newPath, FileMode.Create, FileAccess.Write));
|
using (var writer = new BinaryWriter(new FileStream(newPath, FileMode.Create, FileAccess.Write)))
|
||||||
var saveram = Emulator.AsSaveRam().CloneSaveRam();
|
|
||||||
|
|
||||||
if (saveram != null)
|
|
||||||
{
|
{
|
||||||
writer.Write(saveram, 0, saveram.Length);
|
var saveram = Emulator.AsSaveRam().CloneSaveRam();
|
||||||
|
if (saveram != null)
|
||||||
|
{
|
||||||
|
writer.Write(saveram, 0, saveram.Length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
writer.Close();
|
|
||||||
|
|
||||||
if (file.Exists)
|
if (file.Exists)
|
||||||
{
|
{
|
||||||
|
@ -2164,7 +2164,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void OpenRom()
|
private void OpenRom()
|
||||||
{
|
{
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = PathManager.GetRomsPath(Emulator.SystemId),
|
InitialDirectory = PathManager.GetRomsPath(Emulator.SystemId),
|
||||||
Filter = RomFilter,
|
Filter = RomFilter,
|
||||||
|
@ -3139,7 +3139,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
// handle directories first
|
// handle directories first
|
||||||
if (ext == "<directory>")
|
if (ext == "<directory>")
|
||||||
{
|
{
|
||||||
var fbd = new FolderBrowserEx();
|
using var fbd = new FolderBrowserEx();
|
||||||
if (fbd.ShowDialog() == DialogResult.Cancel)
|
if (fbd.ShowDialog() == DialogResult.Cancel)
|
||||||
{
|
{
|
||||||
aw.Dispose();
|
aw.Dispose();
|
||||||
|
@ -3150,7 +3150,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var sfd = new SaveFileDialog();
|
using var sfd = new SaveFileDialog();
|
||||||
if (Global.Game != null)
|
if (Global.Game != null)
|
||||||
{
|
{
|
||||||
sfd.FileName = $"{PathManager.FilesystemSafeName(Global.Game)}.{ext}"; // don't use Path.ChangeExtension, it might wreck game names with dots in them
|
sfd.FileName = $"{PathManager.FilesystemSafeName(Global.Game)}.{ext}"; // don't use Path.ChangeExtension, it might wreck game names with dots in them
|
||||||
|
@ -3364,7 +3364,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private int? LoadArchiveChooser(HawkFile file)
|
private int? LoadArchiveChooser(HawkFile file)
|
||||||
{
|
{
|
||||||
var ac = new ArchiveChooser(file);
|
using var ac = new ArchiveChooser(file);
|
||||||
if (ac.ShowDialog(this) == DialogResult.OK)
|
if (ac.ShowDialog(this) == DialogResult.OK)
|
||||||
{
|
{
|
||||||
return ac.SelectedMemberIndex;
|
return ac.SelectedMemberIndex;
|
||||||
|
@ -3422,7 +3422,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private string ChoosePlatformForRom(RomGame rom)
|
private string ChoosePlatformForRom(RomGame rom)
|
||||||
{
|
{
|
||||||
var platformChooser = new PlatformChooser
|
using var platformChooser = new PlatformChooser
|
||||||
{
|
{
|
||||||
RomGame = rom
|
RomGame = rom
|
||||||
};
|
};
|
||||||
|
@ -3569,7 +3569,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
// determine the xml assets and create RomStatusDetails for all of them
|
// determine the xml assets and create RomStatusDetails for all of them
|
||||||
var xmlGame = XmlGame.Create(new HawkFile(oa_openrom.Path));
|
var xmlGame = XmlGame.Create(new HawkFile(oa_openrom.Path));
|
||||||
|
|
||||||
StringWriter xSw = new StringWriter();
|
using var xSw = new StringWriter();
|
||||||
|
|
||||||
for (int xg = 0; xg < xmlGame.Assets.Count; xg++)
|
for (int xg = 0; xg < xmlGame.Assets.Count; xg++)
|
||||||
{
|
{
|
||||||
|
@ -4079,7 +4079,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
file.Directory.Create();
|
file.Directory.Create();
|
||||||
}
|
}
|
||||||
|
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
AddExtension = true,
|
AddExtension = true,
|
||||||
DefaultExt = "State",
|
DefaultExt = "State",
|
||||||
|
@ -4113,7 +4113,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = PathManager.GetSaveStatePath(Global.Game),
|
InitialDirectory = PathManager.GetSaveStatePath(Global.Game),
|
||||||
Filter = "Save States (*.State)|*.State|All Files|*.*",
|
Filter = "Save States (*.State)|*.State|All Files|*.*",
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
$"[{(vc2012.HasValue ? " OK " : "FAIL")}] Visual C++ 2012 Runtime",
|
$"[{(vc2012.HasValue ? " OK " : "FAIL")}] Visual C++ 2012 Runtime",
|
||||||
$"[{(vc2015.HasValue ? " OK " : "FAIL")}] Visual C++ 2015 Runtime"
|
$"[{(vc2015.HasValue ? " OK " : "FAIL")}] Visual C++ 2015 Runtime"
|
||||||
};
|
};
|
||||||
var box = new CustomControls.PrereqsAlert(reqPresent)
|
using var box = new CustomControls.PrereqsAlert(reqPresent)
|
||||||
{
|
{
|
||||||
textBox1 = { Text = string.Join(Environment.NewLine, alertLines) }
|
textBox1 = { Text = string.Join(Environment.NewLine, alertLines) }
|
||||||
};
|
};
|
||||||
|
|
|
@ -211,7 +211,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void btnSelectUserFilter_Click(object sender, EventArgs e)
|
private void btnSelectUserFilter_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var ofd = new OpenFileDialog();
|
using var ofd = new OpenFileDialog();
|
||||||
ofd.Filter = ".CGP (*.cgp)|*.cgp";
|
ofd.Filter = ".CGP (*.cgp)|*.cgp";
|
||||||
ofd.FileName = PathSelection;
|
ofd.FileName = PathSelection;
|
||||||
if (ofd.ShowDialog() == DialogResult.OK)
|
if (ofd.ShowDialog() == DialogResult.OK)
|
||||||
|
@ -241,7 +241,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
catch {}
|
catch {}
|
||||||
if (!ok)
|
if (!ok)
|
||||||
{
|
{
|
||||||
new ExceptionBox(errors).ShowDialog();
|
using var errorForm = new ExceptionBox(errors);
|
||||||
|
errorForm.ShowDialog();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -569,7 +569,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
new PathConfig().ShowDialog(this);
|
using var pathConfig = new PathConfig();
|
||||||
|
pathConfig.ShowDialog(this);
|
||||||
RefreshBasePath();
|
RefreshBasePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
di.Create();
|
di.Create();
|
||||||
}
|
}
|
||||||
|
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
FileName = $"{PathManager.FilesystemSafeName(Global.Game)}-Palettes",
|
FileName = $"{PathManager.FilesystemSafeName(Global.Game)}-Palettes",
|
||||||
InitialDirectory = path,
|
InitialDirectory = path,
|
||||||
|
|
|
@ -302,7 +302,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
y = (int)YNumeric.Maximum - _py;
|
y = (int)YNumeric.Maximum - _py;
|
||||||
}
|
}
|
||||||
|
|
||||||
var p = new Pen(_brush);
|
using var p = new Pen(_brush);
|
||||||
e.Graphics.DrawLine(p, new Point(x, y), new Point(x + 8, y + 8));
|
e.Graphics.DrawLine(p, new Point(x, y), new Point(x + 8, y + 8));
|
||||||
e.Graphics.DrawLine(p, new Point(x + 8, y), new Point(x, y + 8));
|
e.Graphics.DrawLine(p, new Point(x + 8, y), new Point(x, y + 8));
|
||||||
e.Graphics.DrawRectangle(p, new Rectangle(x, y, 8, 8));
|
e.Graphics.DrawRectangle(p, new Rectangle(x, y, 8, 8));
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void BrowsePalette_Click(object sender, EventArgs e)
|
private void BrowsePalette_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
OpenFileDialog ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["NES", "Palettes"].Path, "NES"),
|
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["NES", "Palettes"].Path, "NES"),
|
||||||
Filter = "Palette Files (.pal)|*.PAL|All Files (*.*)|*.*",
|
Filter = "Palette Files (.pal)|*.PAL|All Files (*.*)|*.*",
|
||||||
|
|
|
@ -72,7 +72,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void ButtonPal_Click(object sender, EventArgs e)
|
private void ButtonPal_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["NES", "Palettes"].Path, "NES"),
|
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["NES", "Palettes"].Path, "NES"),
|
||||||
Filter = "Palette Files (.pal)|*.PAL|All Files (*.*)|*.*",
|
Filter = "Palette Files (.pal)|*.PAL|All Files (*.*)|*.*",
|
||||||
|
|
|
@ -73,7 +73,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
var ss = psx.GetSyncSettings();
|
var ss = psx.GetSyncSettings();
|
||||||
var vid = psx.SystemVidStandard;
|
var vid = psx.SystemVidStandard;
|
||||||
var size = psx.CurrentVideoSize;
|
var size = psx.CurrentVideoSize;
|
||||||
var dlg = new PSXOptions(s, ss, vid, size);
|
using var dlg = new PSXOptions(s, ss, vid, size);
|
||||||
|
|
||||||
var result = dlg.ShowDialog(owner);
|
var result = dlg.ShowDialog(owner);
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -173,7 +173,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var f = new FirmwaresConfig { TargetSystem = "Global" };
|
using var f = new FirmwaresConfig { TargetSystem = "Global" };
|
||||||
f.ShowDialog(this);
|
f.ShowDialog(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
system = null;
|
system = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
var f = new FolderBrowserEx
|
using var f = new FolderBrowserEx
|
||||||
{
|
{
|
||||||
Description = $"Set the directory for {name}",
|
Description = $"Set the directory for {name}",
|
||||||
SelectedPath = PathManager.MakeAbsolutePath(box.Text, system)
|
SelectedPath = PathManager.MakeAbsolutePath(box.Text, system)
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
var s = ((LibsnesCore)Global.Emulator).GetSettings();
|
var s = ((LibsnesCore)Global.Emulator).GetSettings();
|
||||||
var ss = ((LibsnesCore)Global.Emulator).GetSyncSettings();
|
var ss = ((LibsnesCore)Global.Emulator).GetSyncSettings();
|
||||||
var dlg = new SNESOptions
|
using var dlg = new SNESOptions
|
||||||
{
|
{
|
||||||
AlwaysDoubleSize = s.AlwaysDoubleSize,
|
AlwaysDoubleSize = s.AlwaysDoubleSize,
|
||||||
CropSGBFrame = s.CropSGBFrame,
|
CropSGBFrame = s.CropSGBFrame,
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
// and the rgb order is switched
|
// and the rgb order is switched
|
||||||
int customColor = BackgroundPanel.BackColor.R | BackgroundPanel.BackColor.G << 8 | BackgroundPanel.BackColor.B << 16;
|
int customColor = BackgroundPanel.BackColor.R | BackgroundPanel.BackColor.G << 8 | BackgroundPanel.BackColor.B << 16;
|
||||||
|
|
||||||
var dlg = new ColorDialog
|
using var dlg = new ColorDialog
|
||||||
{
|
{
|
||||||
AllowFullOpen = true,
|
AllowFullOpen = true,
|
||||||
AnyColor = true,
|
AnyColor = true,
|
||||||
|
@ -70,7 +70,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
// and the rgb order is switched
|
// and the rgb order is switched
|
||||||
int customColor = ForeGroundPanel.BackColor.R | ForeGroundPanel.BackColor.G << 8 | ForeGroundPanel.BackColor.B << 16;
|
int customColor = ForeGroundPanel.BackColor.R | ForeGroundPanel.BackColor.G << 8 | ForeGroundPanel.BackColor.B << 16;
|
||||||
|
|
||||||
var dlg = new ColorDialog
|
using var dlg = new ColorDialog
|
||||||
{
|
{
|
||||||
AllowFullOpen = true,
|
AllowFullOpen = true,
|
||||||
AnyColor = true,
|
AnyColor = true,
|
||||||
|
|
|
@ -103,7 +103,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
var currColor = _settings.BackgroundColor;
|
var currColor = _settings.BackgroundColor;
|
||||||
System.Drawing.Color c = System.Drawing.Color.FromArgb(currColor);
|
System.Drawing.Color c = System.Drawing.Color.FromArgb(currColor);
|
||||||
ColorDialog cd = new ColorDialog();
|
using var cd = new ColorDialog();
|
||||||
|
|
||||||
System.Drawing.Color[] colors = new System.Drawing.Color[]
|
System.Drawing.Color[] colors = new System.Drawing.Color[]
|
||||||
{
|
{
|
||||||
|
|
|
@ -176,7 +176,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var s = new SubtitleMaker {Sub = GetRow(c[0].Index)};
|
using var s = new SubtitleMaker {Sub = GetRow(c[0].Index)};
|
||||||
if (s.ShowDialog() == DialogResult.OK)
|
if (s.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
ChangeRow(s.Sub, SubGrid.SelectedRows[0].Index);
|
ChangeRow(s.Sub, SubGrid.SelectedRows[0].Index);
|
||||||
|
@ -186,7 +186,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private void Export_Click(object sender, EventArgs e)
|
private void Export_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Get file to save as
|
// Get file to save as
|
||||||
var form = new SaveFileDialog
|
using var form = new SaveFileDialog
|
||||||
{
|
{
|
||||||
AddExtension = true,
|
AddExtension = true,
|
||||||
Filter = "SubRip Files (*.srt)|*.srt|All files (*.*)|*.*"
|
Filter = "SubRip Files (*.srt)|*.srt|All files (*.*)|*.*"
|
||||||
|
|
|
@ -557,7 +557,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void BrowseMovies_Click(object sender, EventArgs e)
|
private void BrowseMovies_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
Filter = $"Movie Files (*.{MovieService.DefaultExtension})|*.{MovieService.DefaultExtension}|TAS project Files (*.{TasMovie.Extension})|*.{TasMovie.Extension}|All Files|*.*",
|
Filter = $"Movie Files (*.{MovieService.DefaultExtension})|*.{MovieService.DefaultExtension}|TAS project Files (*.{TasMovie.Extension})|*.{TasMovie.Extension}|All Files|*.*",
|
||||||
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries.MoviesPathFragment, null)
|
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries.MoviesPathFragment, null)
|
||||||
|
|
|
@ -177,7 +177,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
else throw;
|
else throw;
|
||||||
}
|
}
|
||||||
|
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = movieFolderPath,
|
InitialDirectory = movieFolderPath,
|
||||||
DefaultExt = $".{Global.MovieSession.Movie.PreferredExtension}",
|
DefaultExt = $".{Global.MovieSession.Movie.PreferredExtension}",
|
||||||
|
|
|
@ -457,7 +457,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var sfd = new SaveFileDialog();
|
using var sfd = new SaveFileDialog();
|
||||||
var result = sfd.ShowDialog(this);
|
var result = sfd.ShowDialog(this);
|
||||||
if (result == DialogResult.OK)
|
if (result == DialogResult.OK)
|
||||||
{
|
{
|
||||||
|
@ -584,7 +584,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void tsbExportText_Click(object sender, EventArgs e)
|
private void tsbExportText_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
StringWriter sw = new StringWriter();
|
using var sw = new StringWriter();
|
||||||
foreach(var line in listContents)
|
foreach(var line in listContents)
|
||||||
{
|
{
|
||||||
foreach (var entry in line)
|
foreach (var entry in line)
|
||||||
|
|
|
@ -953,7 +953,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private string GetBinarySaveFileFromUser()
|
private string GetBinarySaveFileFromUser()
|
||||||
{
|
{
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
Filter = GetSaveFileFilter(),
|
Filter = GetSaveFileFilter(),
|
||||||
RestoreDirectory = true,
|
RestoreDirectory = true,
|
||||||
|
@ -976,7 +976,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private string GetSaveFileFromUser()
|
private string GetSaveFileFromUser()
|
||||||
{
|
{
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
Filter = "Text (*.txt)|*.txt|All Files|*.*",
|
Filter = "Text (*.txt)|*.txt|All Files|*.*",
|
||||||
RestoreDirectory = true,
|
RestoreDirectory = true,
|
||||||
|
@ -1348,7 +1348,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var sfd = new OpenFileDialog
|
using var sfd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
Filter = "Binary (*.bin)|*.bin|Save Files (*.sav)|*.sav|All Files|*.*",
|
Filter = "Binary (*.bin)|*.bin|Save Files (*.sav)|*.sav|All Files|*.*",
|
||||||
RestoreDirectory = true,
|
RestoreDirectory = true,
|
||||||
|
@ -1407,7 +1407,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
romName = Global.Config.RecentRoms.MostRecent;
|
romName = Global.Config.RecentRoms.MostRecent;
|
||||||
}
|
}
|
||||||
|
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
FileName = $"{Path.GetFileNameWithoutExtension(romName)}.tbl",
|
FileName = $"{Path.GetFileNameWithoutExtension(romName)}.tbl",
|
||||||
InitialDirectory = intialDirectory,
|
InitialDirectory = intialDirectory,
|
||||||
|
@ -1676,7 +1676,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void GoToAddressMenuItem_Click(object sender, EventArgs e)
|
private void GoToAddressMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var inputPrompt = new InputPrompt
|
using var inputPrompt = new InputPrompt
|
||||||
{
|
{
|
||||||
Text = "Go to Address",
|
Text = "Go to Address",
|
||||||
StartLocation = this.ChildPointToScreen(MemoryViewerBox),
|
StartLocation = this.ChildPointToScreen(MemoryViewerBox),
|
||||||
|
@ -1759,7 +1759,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
if (addresses.Any())
|
if (addresses.Any())
|
||||||
{
|
{
|
||||||
var poke = new RamPoke
|
using var poke = new RamPoke
|
||||||
{
|
{
|
||||||
InitialLocation = this.ChildPointToScreen(AddressLabel),
|
InitialLocation = this.ChildPointToScreen(AddressLabel),
|
||||||
ParentTool = this
|
ParentTool = this
|
||||||
|
@ -1785,7 +1785,8 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void SetColorsMenuItem_Click(object sender, EventArgs e)
|
private void SetColorsMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
new HexColorsForm().ShowHawkDialog();
|
using var form = new HexColorsForm();
|
||||||
|
form.ShowHawkDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ResetColorsToDefaultMenuItem_Click(object sender, EventArgs e)
|
private void ResetColorsToDefaultMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -2461,7 +2462,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
//mat.M41 = matVals[3, 0]; mat.M42 = matVals[3, 1]; mat.M43 = matVals[3, 2]; mat.M44 = matVals[3, 3];
|
//mat.M41 = matVals[3, 0]; mat.M42 = matVals[3, 1]; mat.M43 = matVals[3, 2]; mat.M44 = matVals[3, 3];
|
||||||
//MessageBox.Show(mat.ToString());
|
//MessageBox.Show(mat.ToString());
|
||||||
|
|
||||||
StringWriter sw = new StringWriter();
|
using var sw = new StringWriter();
|
||||||
for(int i=0;i<4;i++)
|
for(int i=0;i<4;i++)
|
||||||
sw.WriteLine("{0,18:0.00000} {1,18:0.00000} {2,18:0.00000} {3,18:0.00000}", matVals[i, 0], matVals[i, 1], matVals[i, 2], matVals[i, 3]);
|
sw.WriteLine("{0,18:0.00000} {1,18:0.00000} {2,18:0.00000} {3,18:0.00000}", matVals[i, 0], matVals[i, 1], matVals[i, 2], matVals[i, 3]);
|
||||||
var str = sw.ToString();
|
var str = sw.ToString();
|
||||||
|
|
|
@ -302,7 +302,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public static bool SaveMacroAs(MovieZone macro)
|
public static bool SaveMacroAs(MovieZone macro)
|
||||||
{
|
{
|
||||||
var dialog = new SaveFileDialog
|
using var dialog = new SaveFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = SuggestedFolder(),
|
InitialDirectory = SuggestedFolder(),
|
||||||
FileName = macro.Name,
|
FileName = macro.Name,
|
||||||
|
@ -336,7 +336,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public static MovieZone LoadMacro()
|
public static MovieZone LoadMacro()
|
||||||
{
|
{
|
||||||
var dialog = new OpenFileDialog
|
using var dialog = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = SuggestedFolder(),
|
InitialDirectory = SuggestedFolder(),
|
||||||
Filter = "Movie Macros (*.bk2m)|*.bk2m|All Files|*.*"
|
Filter = "Movie Macros (*.bk2m)|*.bk2m|All Files|*.*"
|
||||||
|
|
|
@ -251,7 +251,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
initialDirectory = Path.GetDirectoryName(filename);
|
initialDirectory = Path.GetDirectoryName(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
FileName = filename,
|
FileName = filename,
|
||||||
InitialDirectory = initialDirectory,
|
InitialDirectory = initialDirectory,
|
||||||
|
|
|
@ -70,63 +70,61 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void BrowseButton_Click(object sender, EventArgs e)
|
private void BrowseButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
using (var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["Global_NULL", "ROM"].Path, "Global_NULL"),
|
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["Global_NULL", "ROM"].Path, "Global_NULL"),
|
||||||
Filter = MainForm.RomFilter,
|
Filter = MainForm.RomFilter,
|
||||||
RestoreDirectory = true
|
RestoreDirectory = true
|
||||||
})
|
};
|
||||||
|
string _path = "";
|
||||||
|
|
||||||
|
var result = ofd.ShowHawkDialog();
|
||||||
|
if (result == DialogResult.OK)
|
||||||
{
|
{
|
||||||
string _path = "";
|
_path = ofd.FileName;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var result = ofd.ShowHawkDialog();
|
try
|
||||||
if (result == DialogResult.OK)
|
{
|
||||||
|
var file = new FileInfo(ofd.FileName);
|
||||||
|
var path = BizHawk.Common.HawkFile.Util_ResolveLink(file.FullName);
|
||||||
|
|
||||||
|
using (var hf = new BizHawk.Common.HawkFile(path))
|
||||||
{
|
{
|
||||||
_path = ofd.FileName;
|
if (hf.IsArchive)
|
||||||
|
{
|
||||||
|
// archive - run the archive chooser
|
||||||
|
if (SystemString == "PSX" || SystemString == "PCFX" || SystemString == "SAT")
|
||||||
|
{
|
||||||
|
MessageBox.Show("Using archives with PSX, PCFX or SATURN is not currently recommended/supported.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
using var ac = new ArchiveChooser(new BizHawk.Common.HawkFile(_path));
|
||||||
|
int memIdx = -1;
|
||||||
|
|
||||||
|
if (ac.ShowDialog(this) == DialogResult.OK)
|
||||||
|
{
|
||||||
|
memIdx = ac.SelectedMemberIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
var intName = hf.ArchiveItems[memIdx];
|
||||||
|
PathBox.Text = $"{_path}|{intName.Name}";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// file is not an archive
|
||||||
|
PathBox.Text = _path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
}
|
||||||
{
|
catch
|
||||||
return;
|
{
|
||||||
}
|
return;
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var file = new FileInfo(ofd.FileName);
|
|
||||||
var path = BizHawk.Common.HawkFile.Util_ResolveLink(file.FullName);
|
|
||||||
|
|
||||||
using (var hf = new BizHawk.Common.HawkFile(path))
|
|
||||||
{
|
|
||||||
if (hf.IsArchive)
|
|
||||||
{
|
|
||||||
// archive - run the archive chooser
|
|
||||||
if (SystemString == "PSX" || SystemString == "PCFX" || SystemString == "SAT")
|
|
||||||
{
|
|
||||||
MessageBox.Show("Using archives with PSX, PCFX or SATURN is not currently recommended/supported.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var ac = new ArchiveChooser(new BizHawk.Common.HawkFile(_path));
|
|
||||||
int memIdx = -1;
|
|
||||||
|
|
||||||
if (ac.ShowDialog(this) == DialogResult.OK)
|
|
||||||
{
|
|
||||||
memIdx = ac.SelectedMemberIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
var intName = hf.ArchiveItems[memIdx];
|
|
||||||
PathBox.Text = $"{_path}|{intName.Name}";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// file is not an archive
|
|
||||||
PathBox.Text = _path;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
private void btnExport_Click(object sender, EventArgs e)
|
private void btnExport_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//acquire target
|
//acquire target
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
Filter = "XRNS (*.xrns)|*.xrns"
|
Filter = "XRNS (*.xrns)|*.xrns"
|
||||||
};
|
};
|
||||||
|
|
|
@ -69,7 +69,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void Screenshot()
|
public void Screenshot()
|
||||||
{
|
{
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
FileName = $"{PathManager.FilesystemSafeName(Global.Game)}-Nametables",
|
FileName = $"{PathManager.FilesystemSafeName(Global.Game)}-Nametables",
|
||||||
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["NES", "Screenshots"].Path, "NES"),
|
InitialDirectory = PathManager.MakeAbsolutePath(Global.Config.PathEntries["NES", "Screenshots"].Path, "NES"),
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
Directory.CreateDirectory(path);
|
Directory.CreateDirectory(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
var ofd = new OpenFileDialog
|
using var ofd = new OpenFileDialog
|
||||||
{
|
{
|
||||||
FileName = !string.IsNullOrWhiteSpace(currentFile)
|
FileName = !string.IsNullOrWhiteSpace(currentFile)
|
||||||
? Path.GetFileName(currentFile)
|
? Path.GetFileName(currentFile)
|
||||||
|
@ -46,7 +46,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
Directory.CreateDirectory(path);
|
Directory.CreateDirectory(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
var sfd = new SaveFileDialog
|
using var sfd = new SaveFileDialog
|
||||||
{
|
{
|
||||||
FileName = !string.IsNullOrWhiteSpace(currentFile)
|
FileName = !string.IsNullOrWhiteSpace(currentFile)
|
||||||
? Path.GetFileName(currentFile)
|
? Path.GetFileName(currentFile)
|
||||||
|
|
|
@ -291,7 +291,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private FileInfo GetFileFromUser()
|
private FileInfo GetFileFromUser()
|
||||||
{
|
{
|
||||||
var sfd = new SaveFileDialog();
|
using var sfd = new SaveFileDialog();
|
||||||
if (LogFile == null)
|
if (LogFile == null)
|
||||||
{
|
{
|
||||||
sfd.FileName = PathManager.FilesystemSafeName(Global.Game) + _extension;
|
sfd.FileName = PathManager.FilesystemSafeName(Global.Game) + _extension;
|
||||||
|
@ -367,7 +367,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void MaxLinesMenuItem_Click(object sender, EventArgs e)
|
private void MaxLinesMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var prompt = new InputPrompt
|
using var prompt = new InputPrompt
|
||||||
{
|
{
|
||||||
StartLocation = this.ChildPointToScreen(TraceView),
|
StartLocation = this.ChildPointToScreen(TraceView),
|
||||||
TextInputType = InputPrompt.InputType.Unsigned,
|
TextInputType = InputPrompt.InputType.Unsigned,
|
||||||
|
@ -388,7 +388,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void SegmentSizeMenuItem_Click(object sender, EventArgs e)
|
private void SegmentSizeMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var prompt = new InputPrompt
|
using var prompt = new InputPrompt
|
||||||
{
|
{
|
||||||
StartLocation = this.ChildPointToScreen(TraceView),
|
StartLocation = this.ChildPointToScreen(TraceView),
|
||||||
TextInputType = InputPrompt.InputType.Unsigned,
|
TextInputType = InputPrompt.InputType.Unsigned,
|
||||||
|
|
Loading…
Reference in New Issue