use of tab.TabAccess in project Money-Manager by krHasan.
the class SignInController method newUser.
@FXML
private void newUser(MouseEvent event) {
if (checkUserPresence()) {
imgSignIn.setVisible(true);
txtSQAnswer.clear();
Alert alert = new Alert(AlertType.CONFIRMATION);
alert.setTitle("Confirmation");
alert.setHeaderText("Only one user can use this at a time");
alert.setContentText("User exists, Delete this one?");
Stage SignInStage = (Stage) lblNewUser.getScene().getWindow();
alert.setX(SignInStage.getX() + 200);
alert.setY(SignInStage.getY() + 170);
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == ButtonType.OK) {
(new TabAccess()).setreRegistrationLodingStatus("deleteUser");
(new GoToRegistration()).goToReRegistration(SignInStage);
}
} else {
Stage SignInStage = (Stage) lblNewUser.getScene().getWindow();
(new GoToRegistration()).goToRegistration(SignInStage);
}
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class SettingsController method mnuSettings.
@FXML
private void mnuSettings(ActionEvent event) {
(new TabAccess()).setTabName("tabBank");
Stage SettingsStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(SettingsStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class SettingsController method mnuSourceSettings.
@FXML
private void mnuSourceSettings(ActionEvent event) {
(new TabAccess()).setTabName("tabSource");
Stage SettingsStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(SettingsStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class SettingsController method mnuBankSettings.
@FXML
private void mnuBankSettings(ActionEvent event) {
(new TabAccess()).setTabName("tabBank");
Stage SettingsStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(SettingsStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class SettingsController method mnuSystemSettings.
@FXML
private void mnuSystemSettings(ActionEvent event) {
(new TabAccess()).setTabName("tabSystem");
Stage SettingsStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(SettingsStage);
}
Aggregations