void LoginWindow::new_user_clicked() { if (login.get_text() != "" && pass.get_text() != "" && uc->addUser(login.get_text(), pass.get_text())) { Gtk::MessageDialog *info = new Gtk::MessageDialog("Konto utworzono"); info->set_modal(true); info->run(); delete info; } }
void LoginWindow::ok_clicked() { if (login_ok = uc->checkUser(login.get_text(), pass.get_text())) { hide(); } else { Gtk::MessageDialog *info = new Gtk::MessageDialog("Błędny login lub hasło."); info->set_modal(true); info->run(); delete info; } }