Ejemplo n.º 1
0
 private void OKButton_Click(object sender, RoutedEventArgs e)
 {
     user = cbCompanyUsers.SelectedItem as CompanyUserAccessClient;
     if (user != null)
     {
         this.DialogResult = true;
     }
 }
Ejemplo n.º 2
0
        async void RemoveAccess(CompanyUserAccessClient selectedItem)
        {
            ErrorCodes err = await companyAPI.RemoveCompanyAccess(selectedItem._Uid);

            if (err == ErrorCodes.Succes)
            {
                var view = (TableView)dgCompanyUsersGrid.View;
                view.DeleteRow(view.FocusedRowHandle);
            }
            else
            {
                UtilDisplay.ShowErrorCode(err);
            }
        }