예제 #1
0
        protected override async Task InitializeAsync()
        {
            SelectedPassword = await _passwordDataService.GetPasswordById(_passwordId);

            await LoadGroups();

            if (SelectedPassword != null)
            {
                SelectedGroup = await _passwordDataService.GetGroupById(SelectedPassword.PasswordGroup.Id);
            }
        }
예제 #2
0
 protected override async Task InitializeAsync()
 {
     if (_groupId != string.Empty)
     {
         SelectedGroup = await _passwordDataService.GetGroupById(_groupId);
     }
     else
     {
         SelectedGroup = new Group();
     }
 }
        protected override async Task InitializeAsync()
        {
            if (_passwordId != string.Empty)
            {
                SelectedPassword = await _passwordDataService.GetPasswordById(_passwordId);
            }
            else
            {
                SelectedPassword = new Password();
            }

            await LoadGroups();

            if (SelectedPassword != null)
            {
                SelectedGroup = await _passwordDataService.GetGroupById(SelectedPassword.PasswordGroup.Id);
            }
            else
            {
                SelectedGroup = new Group();
            }
        }
예제 #4
0
 protected override async Task InitializeAsync()
 {
     SelectedGroup = await _passwordDataService.GetGroupById(_groupId);
 }