コード例 #1
0
        public EmitEventPage()
        {
            EventInfo = new SharedEventInfo();
            MethodIndex = -1;

            InitializeComponent();

            OtherInfoListBox.ItemsSource = EventInfo.OtherInfo;
            SocialPermissionListBox.ItemsSource = EventInfo.SocialPermissions;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }