public static KundList GetKundService()
        {
            if (_kundService == null)
            {
                try
                {
                    _kundService = new KundList();
                }
                catch (Exception)
                {
                    throw;
                }
            }

            return(_kundService);
        }
Пример #2
0
        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();
        }