Exemplo n.º 1
0
        public ContactsPlugin()
        {
            state    = new ContactsState();
            overview = new PluginHelper(state);

            EventBroker.Subscribe <Person>(AppEvents.New, delegate { State.New(); });
            EventBroker.Subscribe <Person>(AppEvents.View, delegate(Person person)
            {
                ClientState.Current.ViewController.MoveTo(WellKnownView.Contacts);

                state.IsExternalSelection = true;
                state.SelectedPersons.Replace(new[] { person });
                state.IsExternalSelection = false;
            });
        }
Exemplo n.º 2
0
        public ContactsPlugin()
        {
            state = new ContactsState();
            overview = new PluginHelper(state);

            EventBroker.Subscribe<Person>(AppEvents.New, delegate { State.New(); });
            EventBroker.Subscribe<Person>(AppEvents.View, delegate(Person person)
            {
                ClientState.Current.ViewController.MoveTo(WellKnownView.Contacts);

                state.IsExternalSelection = true;
                state.SelectedPersons.Replace(new[] { person });
                state.IsExternalSelection = false;
            });
        }