public IRun Import(Form form = null) { var dialog = new BrowseSpeedrunComDialog(false); var result = dialog.ShowDialog(form); if (result == DialogResult.OK) return dialog.Run; return null; }
public string ImportAsComparison(IRun run, Form form = null) { var dialog = new BrowseSpeedrunComDialog(true, run.GameName, run.CategoryName); var result = dialog.ShowDialog(form); var name = dialog.RunName; if (result == DialogResult.OK) { result = InputBox.Show(form, "Enter Comparison Name", "Name:", ref name); } if (result == DialogResult.OK) { return run.AddComparisonWithNameInput(dialog.Run, name, form); } return null; }