You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
843 B

3 years ago
package main.java.ru.egspt.moodle;
3 years ago
public class BaseControls {
//
public static void ConnectToServer(Base base, AccessPane accessPane){
System.out.println("Инициировано событие ConnectToServer ...");
String link = accessPane.getLinkField().getText();
base.getAccess().setLink(link);
String login = accessPane.getLoginField().getText();
base.getAccess().setLogin(login);
String password = String.valueOf(accessPane.getPassField().getPassword());
base.getAccess().setPassword(password);
base.connect();//подключиться к базе
}
public static void DisconnectFromServer(Base base){
System.out.println("Инициировано событие DisconnectFromServer ...");
base.disconnect();
}
}