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; }); }
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; }); }