private void HandleFileMenuOption(object arg) { FileMenuOptions option = (FileMenuOptions)arg; switch (option) { case FileMenuOptions.OverriteInputSettings: EditorToolbox.OverwriteInputSettings(); break; case FileMenuOptions.CreateSnapshot: EditorToolbox.CreateSnapshot(_inputManager); break; case FileMenuOptions.LoadSnapshot: EditorToolbox.LoadSnapshot(_inputManager); break; case FileMenuOptions.Export: ExportInputConfigurations(); break; case FileMenuOptions.Import: ImportInputConfigurations(); break; case FileMenuOptions.ImportJoystickMapping: EditorToolbox.OpenImportJoystickMappingWindow(this); break; case FileMenuOptions.ConfigureForInputAdapter: ConfigureForInputAdapter(); break; } }
private void HandleFileMenuOption(object arg) { FileMenuOptions option = (FileMenuOptions)arg; switch (option) { case FileMenuOptions.OverriteInputSettings: EditorToolbox.OverwriteInputSettings(); break; case FileMenuOptions.CreateSnapshot: EditorToolbox.CreateSnapshot(_inputManager); break; case FileMenuOptions.LoadSnapshot: EditorToolbox.LoadSnapshot(_inputManager); break; case FileMenuOptions.Export: ExportInputConfigurations(); break; case FileMenuOptions.Import: ImportInputConfigurations(); break; case FileMenuOptions.ImportJoystickMapping: EditorToolbox.OpenImportJoystickMappingWindow(this); break; case FileMenuOptions.ConfigureForInputAdapter: LoadInputConfigurationsFromResource(ResourcePaths.INPUT_ADAPTER_DEFAULT_CONFIG); break; case FileMenuOptions.CreateDefaultInputConfig: LoadInputConfigurationsFromResource(ResourcePaths.INPUT_MANAGER_DEFAULT_CONFIG); break; } }