예제 #1
0
        public override void OnNavigatingTo(NavigationParameters parameters)
        {
            m_Record = (RecordDto)parameters["model"];
            m_Group  = (GroupDto)parameters["group"];
            RaisePropertyChanged(nameof(TrackCost));
            RaisePropertyChanged(nameof(GroupID));
            RaisePropertyChanged(nameof(ID));
            RaisePropertyChanged(nameof(RecordTitle));
            RaisePropertyChanged(nameof(Cost));

            foreach (var u in m_Group.Users)
            {
                UsersForRecord.Add(u);
            }

            if (m_Record.UserID != Guid.Empty)
            {
                SelectedIndex = UsersForRecord.IndexOf(UsersForRecord.FirstOrDefault(x => x.ID == m_Record.UserID));
            }

            RaisePropertyChanged("UserName");
            if (parameters["alert"] != null)
            {
                Acr.UserDialogs.ToastConfig config = new Acr.UserDialogs.ToastConfig(parameters["alert"].ToString());
                config.BackgroundColor = System.Drawing.Color.Green;
                Acr.UserDialogs.UserDialogs.Instance.Toast(config);
            }
        }
예제 #2
0
        public override void OnNavigatedTo(NavigationParameters parameters)
        {
            base.OnNavigatedTo(parameters);

            if (_authenticationService.IsLoggedIn())
            {
                Load(parameters["refresh"] != null);
            }
            if (parameters["alert"] != null)
            {
                Acr.UserDialogs.ToastConfig config = new Acr.UserDialogs.ToastConfig(parameters["alert"].ToString());
                config.BackgroundColor = System.Drawing.Color.Green;
                Acr.UserDialogs.UserDialogs.Instance.Toast(config);
            }
        }