private void Complete(EngineRequest request, ICommandReply reply, object result)
        {
            OpenDMS.Storage.Providers.CouchDB.Commands.GetViewReply r = (OpenDMS.Storage.Providers.CouchDB.Commands.GetViewReply)reply;

            OpenDMS.Storage.Providers.CouchDB.Transitions.GroupCollection gc = new OpenDMS.Storage.Providers.CouchDB.Transitions.GroupCollection();
            List <OpenDMS.Storage.Security.Group> groups = gc.Transition(r.View);

            for (int i = 0; i < groups.Count; i++)
            {
                comboBox1.Invoke(new MethodInvoker(delegate { comboBox1.Items.Add(groups[i]); }));
            }

            comboBox1.Invoke(new MethodInvoker(delegate { panel1.Visible = false; }));
        }
Ejemplo n.º 2
0
        private void Complete(EngineRequest request, ICommandReply reply, object result)
        {
            DateTime stop = DateTime.Now;
            TimeSpan duration = stop - _start;

            OpenDMS.Storage.Providers.CouchDB.Commands.GetViewReply r = (OpenDMS.Storage.Providers.CouchDB.Commands.GetViewReply)reply;

            WriteLine("GetAllGroups.Complete - results received in " + duration.TotalMilliseconds.ToString() + "ms.");

            OpenDMS.Storage.Providers.CouchDB.Transitions.GroupCollection gc = new OpenDMS.Storage.Providers.CouchDB.Transitions.GroupCollection();
            List<OpenDMS.Storage.Security.Group> groups = gc.Transition(r.View);

            WriteLine("The following groups were loaded:");
            for (int i=0; i<groups.Count; i++)
            {
                WriteLine("\t" + groups[i].GroupName);
            }
        }
        private void Complete(EngineRequest request, ICommandReply reply, object result)
        {
            DateTime stop     = DateTime.Now;
            TimeSpan duration = stop - _start;

            OpenDMS.Storage.Providers.CouchDB.Commands.GetViewReply r = (OpenDMS.Storage.Providers.CouchDB.Commands.GetViewReply)reply;

            WriteLine("GetAllGroups.Complete - results received in " + duration.TotalMilliseconds.ToString() + "ms.");

            OpenDMS.Storage.Providers.CouchDB.Transitions.GroupCollection gc = new OpenDMS.Storage.Providers.CouchDB.Transitions.GroupCollection();
            List <OpenDMS.Storage.Security.Group> groups = gc.Transition(r.View);

            WriteLine("The following groups were loaded:");
            for (int i = 0; i < groups.Count; i++)
            {
                WriteLine("\t" + groups[i].GroupName);
            }
        }
Ejemplo n.º 4
0
        private void Complete(EngineRequest request, ICommandReply reply, object result)
        {
            OpenDMS.Storage.Providers.CouchDB.Commands.GetViewReply r = (OpenDMS.Storage.Providers.CouchDB.Commands.GetViewReply)reply;

            OpenDMS.Storage.Providers.CouchDB.Transitions.GroupCollection gc = new OpenDMS.Storage.Providers.CouchDB.Transitions.GroupCollection();
            List<OpenDMS.Storage.Security.Group> groups = gc.Transition(r.View);

            for (int i = 0; i < groups.Count; i++)
            {
                comboBox1.Invoke(new MethodInvoker(delegate { comboBox1.Items.Add(groups[i]); }));
            }

            comboBox1.Invoke(new MethodInvoker(delegate { panel1.Visible = false; }));
        }