this.RemoveUser();
Parent.getUsers().remove(this);
}
public void Edit() {
OConnectionJPanel oc = new OConnectionJPanel();
oc.ShowEditUserDialog(this);
if (oc.getIsSaved()) {
if (oc.getUserName().compareTo(this.getUserName()) != 0) {
this.RemoveUser();
}
setUserName(oc.getUserName());
setSavePassword(oc.getSaveUserPassword());
if (oc.getSaveUserPassword()) {
setPassword(oc.getPassword());
}
setConnectRole(oc.getConnectRole());
}
}