Reduce unnecessary action duplications in MultiDiskBundler

This commit is contained in:
Morilli 2024-06-17 00:46:32 +02:00
parent 4f01a8f522
commit ec1c27596b
3 changed files with 0 additions and 10 deletions

View File

@ -191,7 +191,6 @@
this.MainMenuStrip = this.MultiDiskMenuStrip;
this.Name = "MultiDiskBundler";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Load += new System.EventHandler(this.MultiGameCreator_Load);
this.grpName.ResumeLayout(false);
this.grpName.PerformLayout();
this.ResumeLayout(false);

View File

@ -53,8 +53,6 @@ namespace BizHawk.Client.EmuHawk
});
}
private void MultiGameCreator_Load(object sender, EventArgs e) => Restart();
public override void Restart()
{
FileSelectorPanel.Controls.Clear();
@ -87,7 +85,6 @@ namespace BizHawk.Client.EmuHawk
}
FileSelectors.First().Path = MainForm.CurrentlyOpenRom;
Recalculate();
}
}

View File

@ -27,11 +27,6 @@ namespace BizHawk.Client.EmuHawk
public event EventHandler NameChanged;
private void HandleLabelTextChanged(object sender, EventArgs e)
{
OnNameChanged(EventArgs.Empty);
}
public MultiDiskFileSelector(IDialogController dialogController, PathEntryCollection pathEntries,
Func<string> getLoadedRomNameCallback, Func<string> getSystemNameCallback)
{
@ -40,7 +35,6 @@ namespace BizHawk.Client.EmuHawk
_getLoadedRomNameCallback = getLoadedRomNameCallback;
_getSystemNameCallback = getSystemNameCallback;
InitializeComponent();
PathBox.TextChanged += HandleLabelTextChanged;
}
protected virtual void OnNameChanged(EventArgs e)