public EmitEventPage() { EventInfo = new SharedEventInfo(); MethodIndex = -1; InitializeComponent(); OtherInfoListBox.ItemsSource = EventInfo.OtherInfo; SocialPermissionListBox.ItemsSource = EventInfo.SocialPermissions; }
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); string eventId = ""; if (NavigationContext.QueryString.TryGetValue("eventId", out eventId)) EventInfo = SharedPageParameters.Instance.GetParameter(eventId) as SharedEventInfo; string valId = ""; if (NavigationContext.QueryString.TryGetValue("valId", out valId)) OtherInfoValue = SharedPageParameters.Instance.GetParameter(valId) as EventOtherInfoValue; if (!OtherInfoValue.IsNew) ApplicationBar = Resources["ExistEventApplicationBar"] as ApplicationBar; KeyTextBlock.Text = OtherInfoValue.Key; ValueTextBlock.Text = OtherInfoValue.StringValue; }
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); string eventId = ""; if (NavigationContext.QueryString.TryGetValue("eventId", out eventId)) EventInfo = SharedPageParameters.Instance.GetParameter(eventId) as SharedEventInfo; string valId = ""; if (NavigationContext.QueryString.TryGetValue("valId", out valId)) SocialPermission = SharedPageParameters.Instance.GetParameter(valId) as EventSocialPermission; if (!SocialPermission.IsNew) ApplicationBar = Resources["ExistEventApplicationBar"] as ApplicationBar; NameTextBlock.Text = SocialPermission.Name; GrantedCheckBox.IsChecked = SocialPermission.Granted; }