/// <summary> /// Give access to the unique allowed instance of this class /// </summary> /// <returns>The singleton instance</returns> public static DataManager getInstance() { if( null == _dataManager ) _dataManager = new DataManager(); return _dataManager; }
private void ThisAddIn_Startup(object sender, System.EventArgs e) { try { this._dataManager = DataManager.getInstance(); } catch( Exception ex ) { this._dataManager = null; DisplayException( ex ); } }
public FormMain() { InitializeComponent(); _dataManager = DataManager.getInstance(); }