using PipeGallery.View; namespace PipeGallery.Manage { public class Global { private static MainView mainView = null; public static MainView GetMainView() { if (mainView == null) { mainView = new MainView(); } return mainView; } } }