get_window()->draw_line (gc, x1, y1, x1, y2);
get_window()->draw_line (gc, x1, y2, x2, y2);
}
+
+
+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;
+}