ng Name, string Rights)
{. Name=Name ;. Rights=Rights;
} string Name
{
{this. name;
}
{. name=value;
}
} string Rights
{
{this. rights;
}
{. rights=value;
}
} user Next
{
{this. next;
}
{. next=value;
}
} public string show ();
}
}
admin. cs
using System; System. Collections. Generic; System. Linq; System. Text; курсовая_2курс
{admin: defUser
{admin (string Name, string Rights, string Password): base (Name, Rights, Password)
{
} void deleteUser (defUser user) {/ *. * /} Override string show ()
{str= Адміністратор + This. Name + + This. Rights + + This. Password; str;
}
}
}
defUser. cs
using System; System. Collections. Generic; System. Linq; System. Text; курсовая_2курс
{defUser: user
{string password; defUser (string Name, string Rights, string Password): base (Name, Rights)
{. Password=Password;
} string Password
{
{this. password;
}
{. password=value;
}
} override string show ()
{str= Користувач + This. Name + + This. Rights + + This. Password; str;
}
}
}
guest. cs System; System. Collections. Generic; System. Linq; System. Text; курсовая_2курс
{guest: user
{guest (string Name, string Rights): base (Name, Rights)
{
} override string show ()
{str= Гість + This. Name + + This. Rights; str;
}
}
}
elementList. cs
using System; System. Collections. Generic; System. Linq; System. Text; курсовая_2курс
{listElement
{listElement next; user info; listElement ()
{. Next=null;
} listElement (user User)
{. Info=User ;. Next=null;
} listElement Next
{{return this. next; } {This. next=value; }
} user Info
{{return this. info; } {This. info=value; }
}
}
}
Container. cs
using System; System. IO; System. Collections. Generic; System. Security. Cryptography; System. Linq; System. Text; System. Windows. Forms; курсовая_2курс
{Container
{listElement head;
# region КонструкторContainer ()
{. head=new listElement ();
}
# endregion
# region Додавання користувача після заданого
public void addUserAfter (user User, user afterUser)
{iterator, newElement; find;=new listElement (User);=false; (iterator=head. Next; iterator!=null; iterator=iterator. Next)
{(iterator!=null amp; amp; iterator. Info == afterUser amp; amp; afterUser!=null)
{= true ;;
}
} (find)
{. Next=iterator. Next ;. Next=newElement;
}. Next=newElement;
}
# endregion
# region Додавання користувача перед заданнимbool addUserBefore (user User, user beforeUser)
{iterator, tmp, newElement; find;=new listElement (User);=false;=null; (head. Next == null || head. Info == beforeUser)
{. Next=head. Next ;. N...