public static BokningsList GetBokningsService() { if (_bokningsService == null) { try { _bokningsService = new BokningsList(); } catch (Exception) { throw; } } return(_bokningsService); }
public NyKund() { try { kundList = ServiceProvider.GetKundService(); dykList = ServiceProvider.GetDykarkursService(); bokList = ServiceProvider.GetBokningsService(); } catch (Exception ex) { MessageBox.Show(ex.Message); return; } InitializeComponent(); dykList.Updated += new EventHandler(dykService_Update); kundList.Updated += new EventHandler(kundService_Update); bokList.Updated += new EventHandler(bokList_Update); initListView(); }