Пример #1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            commentsListView.SelectedIndex = -1;
            ViewModel.CommentText          = string.Empty;

            if (e.NavigationMode != NavigationMode.Back)
            {
                if (ViewModel.Comments != null)
                {
                    ViewModel.Comments.Clear();
                }
                if (e.Parameter as Tuple <Repository, Issue> != null)
                {
                    ConfigureStateSymbol((e.Parameter as Tuple <Repository, Issue>).Item2);
                }
                else if (e.Parameter as Tuple <string, string, Issue> != null)
                {
                    ConfigureStateSymbol((e.Parameter as Tuple <string, string, Issue>).Item3);
                }
                await ViewModel.Load(e.Parameter);

                CommentsPivot.SelectedItem = CommentsPivot.Items[0];
            }
        }
Пример #2
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            ViewModel.CommentText = string.Empty;

            await ViewModel.Load(e.Parameter);

            CommentsPivot.SelectedItem = CommentsPivot.Items[0];
        }
Пример #3
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            commentsListView.SelectedIndex = -1;

            if (e.NavigationMode != NavigationMode.Back)
            {
                if (ViewModel.Comments != null)
                {
                    ViewModel.Comments.Clear();
                }
                await ViewModel.Load((e.Parameter as Tuple <string, string, Issue>));
            }
        }
Пример #4
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            Messenger.Default.Send(new GlobalHelper.SetHeaderTextMessageType {
                PageName = "Issues"
            });

            commentsListView.SelectedIndex = -1;

            if (e.NavigationMode != NavigationMode.Back)
            {
                if (ViewModel.Comments != null)
                {
                    ViewModel.Comments.Clear();
                }
                await ViewModel.Load((e.Parameter as Tuple <string, string, Issue>));
            }
        }
Пример #5
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            Messenger.Default.Send(new GlobalHelper.SetHeaderTextMessageType {
                PageName = "Issue"
            });

            commentsListView.SelectedIndex = -1;
            ViewModel.CommentText          = string.Empty;

            if (e.NavigationMode != NavigationMode.Back)
            {
                if (ViewModel.Comments != null)
                {
                    ViewModel.Comments.Clear();
                }

                ConfigureStateSymbol((e.Parameter as Tuple <Repository, Issue>).Item2);
                await ViewModel.Load((e.Parameter as Tuple <Repository, Issue>));
            }
        }