Ejemplo n.º 1
0
 /// <summary>
 /// Obsługa naciśnięcia btn Usuń.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">EventArgs.</param>
 private void deleteButtonElement_Click(object sender, EventArgs e)
 {
     if (CurrentView != null && CurrentView is BaseListWindow)
     {
         CurrentView.Delete();
     }
 }
 public override void update()
 {
     // Delete all 'Roles and Users' views except 1
     CswNbtObjClassRole ChemSWAdmin = _CswNbtSchemaModTrnsctn.Nodes.makeRoleNodeFromRoleName( CswNbtObjClassRole.ChemSWAdminRoleName );
     foreach( CswNbtView CurrentView in _CswNbtSchemaModTrnsctn.ViewSelect.restoreViews( "Roles and Users" ).Where( CurrentView => CurrentView.VisibilityRoleId != ChemSWAdmin.NodeId ) )
     {
         CurrentView.Delete();
     }
 }// update()