using System; using My_Devices = Microsoft.VisualBasic.Devices; using My_AppSvcs = Microsoft.VisualBasic.ApplicationServices; using My_Logging = Microsoft.VisualBasic.Logging; namespace AtmarkIT.VisualBasic.Features { static class My { // My.Application private static My_AppSvcs.WindowsFormsApplicationBase _windowsApplication; public static My_AppSvcs.WindowsFormsApplicationBase ApplicationOfWindows { get { if (_windowsApplication == null) { _windowsApplication = new My_AppSvcs.WindowsFormsApplicationBase(); } return _windowsApplication; } } private static My_AppSvcs.ApplicationBase _application; public static My_AppSvcs.ApplicationBase ApplicationOfLibrary { get { if (_application == null) { _application = new My_AppSvcs.ApplicationBase(); } return _application; } } private static My_AppSvcs.ConsoleApplicationBase _consoleApplication; public static My_AppSvcs.ConsoleApplicationBase ApplicationOfConsole { get { if (_consoleApplication == null) { _consoleApplication = new My_AppSvcs.ConsoleApplicationBase(); } return _consoleApplication; } } // My.Computer private static My_Devices.Computer _clientcomputer; public static My_Devices.Computer ComputerOfClient { get { if (_clientcomputer == null) { _clientcomputer = new My_Devices.Computer(); } return _clientcomputer; } } private static My_Devices.ServerComputer _servercomputer; public static My_Devices.ServerComputer ComputerOfServer { get { if (_servercomputer == null) { _servercomputer = new My_Devices.ServerComputer(); } return _servercomputer; } } // My.User private static My_AppSvcs.User _windowsuser; public static My_AppSvcs.User UserOfWindows { get { if (_windowsuser == null) { _windowsuser = new My_AppSvcs.User(); } return _windowsuser; } } private static My_AppSvcs.WebUser _webuser; public static My_AppSvcs.WebUser UserOfWeb { get { if (_webuser == null) { _webuser = new My_AppSvcs.WebUser(); } return _webuser; } } // My.Log private static My_Logging.Log _log; public static My_Logging.Log Log { get { if (_log == null) { _log = new My_Logging.Log(); } return _log; } } } }