Ejemplo n.º 1
0
        void AddActions(IEnumerable <Action <IDatabase> > actions)
        {
            ListviewDatabaseAdapter.Process(actions, listBoxEvents);

            foreach (var action in actions)
            {
                this.events.Add(action);
            }

            this.CheckState();
        }
Ejemplo n.º 2
0
        public static void Process(IEnumerable <Action <IDatabase> > actions, ListBox listBox)
        {
            IDatabase adapter = new ListviewDatabaseAdapter(listBox);

            adapter.Start();
            foreach (var action in actions)
            {
                action.Invoke(adapter);
            }
            adapter.End();
        }