// Decompiled with JetBrains decompiler // Type: GDRomExplorer.DiscView.DiscTreeViewSelectionHandlerFactory // Assembly: GD-ROM Explorer, Version=1.6.3.0, Culture=neutral, PublicKeyToken=611be24fdeb07e08 // MVID: B7A7D10A-9A63-4E9E-9840-D297E5FC2219 // Assembly location: GD-ROM Explorer.exe using GDRomExplorer.UserControls; using ImageReader.ISO9660.DirectoryRecords; using SEGATools.DiscFileSystem; using SEGATools.Security; using System.Windows.Forms; namespace GDRomExplorer.DiscView { public class DiscTreeViewSelectionHandlerFactory : DiscSelectionHandlerFactory { public DiscTreeViewSelectionHandlerFactory(DiscViewExplorer Context, TreeView Control) : base(Context, Control) { } private DiscViewSelection newSelectionHandlers( IDiscFileSystem discFileSystem) { return DiscViewSelection.NewHandlersForTreeView(new DiscViewSelection.SelectionHandler(this.Context.Disc_AfterSelectHandler), new DiscViewSelection.SelectionHandler(this.Context.Disc_MouseRightClickHandler), (DiscViewSelection.SelectionHandler) null, discFileSystem); } private DiscViewSelection newSelectionHandlers( DirectoryRecord DirectoryRecord) { return DiscViewSelection.NewHandlersForTreeView(new DiscViewSelection.SelectionHandler(this.Context.DirectoryRecord_AfterSelectClickHandler), new DiscViewSelection.SelectionHandler(this.Context.DirectoryRecord_MouseRightClickHandler), (DiscViewSelection.SelectionHandler) null, DirectoryRecord); } private DiscViewSelection newSelectionHandlers( InitialProgramExtended InitialProgram) { return DiscViewSelection.NewHandlersForTreeView(new DiscViewSelection.SelectionHandler(this.Context.InitialProgram_AfterSelectHandler), new DiscViewSelection.SelectionHandler(this.Context.InitialProgram_MouseRightClickHandler), new DiscViewSelection.SelectionHandler(this.Context.InitialProgram_MouseDoubleLeftClicksHandler), InitialProgram); } private DiscViewSelection newSelectionHandlers( IDiscSession DiscSession) { return DiscViewSelection.NewHandlersForTreeView(new DiscViewSelection.SelectionHandler(this.Context.DiscSession_AfterSelectHandler), new DiscViewSelection.SelectionHandler(this.Context.DiscSession_MouseRightClickHandler), (DiscViewSelection.SelectionHandler) null, DiscSession); } private DiscViewSelection newSelectionHandlers( IDiscTrack DiscTrack) { return DiscViewSelection.NewHandlersForTreeView(new DiscViewSelection.SelectionHandler(this.Context.DiscTrack_AfterSelectHandler), new DiscViewSelection.SelectionHandler(this.Context.DiscTrack_MouseRightClickHandler), (DiscViewSelection.SelectionHandler) null, DiscTrack); } public override IDiscViewSelection newSelectionHandlers(object Handle) { switch (Handle) { case IDiscFileSystem _: return (IDiscViewSelection) this.newSelectionHandlers(Handle as IDiscFileSystem); case IDiscSession _: return (IDiscViewSelection) this.newSelectionHandlers(Handle as IDiscSession); case IDiscTrack _: return (IDiscViewSelection) this.newSelectionHandlers(Handle as IDiscTrack); case InitialProgramExtended _: return (IDiscViewSelection) this.newSelectionHandlers(Handle as InitialProgramExtended); case DirectoryRecord _: return (IDiscViewSelection) this.newSelectionHandlers(Handle as DirectoryRecord); default: return (IDiscViewSelection) null; } } } }