Skip to content

Commit

Permalink
Bugfixing form portal
Browse files Browse the repository at this point in the history
  • Loading branch information
Senad Mulaosmanovic committed Apr 16, 2024
1 parent 5d0cd61 commit e73d9f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DWSIM.ProFeatures/FormPortal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private void TrialLicenseCreatedLogic()
}
private void Timer1_Tick()
{
if (TrialLicenseCreatedMessageCount + 1 <= TrialLicenseCreatedMessages.Count)
if (TrialLicenseCreatedMessageCount + 1 < TrialLicenseCreatedMessages.Count)
{
TrialLicenseCreatedMessageCount += 1;
this.UIThread(() =>
Expand Down
10 changes: 9 additions & 1 deletion DWSIM/Forms/MainWindow/FormMain.vb
Original file line number Diff line number Diff line change
Expand Up @@ -4928,7 +4928,15 @@ Label_00CC:
End Sub

Private Sub ToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles tsmiFreeProTrial.Click
Functions.DisplayTransitionForm(Nothing, "Access DWSIM Pro now", True)
Dim userService As UserService = UserService.GetInstance()
Dim isLoggedIn As Boolean = userService._IsLoggedIn()
If isLoggedIn Then
Functions.DisplayTransitionForm(Nothing, "Access DWSIM Pro now", True)
Else
Dim loginForm = New LoginForm()
loginForm.ShowDialog()
End If

End Sub

Private Sub AbrirDoDashboardToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles AbrirDoDashboardToolStripMenuItem.Click
Expand Down

0 comments on commit e73d9f3

Please sign in to comment.