public static AppRegistry getInstance() { if (instance == null) { instance = new AppRegistry(); } return(instance); }
public MainWindow() { InitializeComponent(); row1width = 752; row1height = 410; row2width = 752; row2height = 30; Globals.getInstance().registry = AppRegistry.getInstance(); Globals.getInstance().connection = Globals.getInstance().registry.getDataBaseConnection(); }