+
+
+bool WorkPlace::chek_name(Glib::ustring _name, int _id)
+{
+ std::list<CItem *>::iterator i;
+ i = listaItems->begin();
+ while ( i != listaItems->end() ) {
+ if ( (*i)->get_name() == _name && (*i)->get_id() != _id )
+ return true;
+ i++;
+ }
+ return false;
+}