public static bool SelectLibrary() { librarySelection = new LibrarySelection(); librarySelection.ShowDialog(); librarySelection.Dispose(); librarySelection = null; return(GraphicsLibraryName != null); }
public static bool SelectLibrary() { using (var librarySelection = new LibrarySelection()) { librarySelection.ShowDialog(); } return(GraphicsLibraryName != null); }
public static bool SelectLibrary() { librarySelection = new LibrarySelection(); librarySelection.ShowDialog(); librarySelection.Dispose(); librarySelection = null; return GraphicsLibraryName != null; }