no message

This commit is contained in:
2024-10-12 00:17:51 +03:00
parent f317ab1aa1
commit c826b4a4bd
102 changed files with 372 additions and 520 deletions

View File

@@ -2,6 +2,7 @@ package Common.Visual.Windows;
import Common.Utils.Utils_;
import Common.Visual.Themes.ThemeElement;
import Common.Database.Objects.DBForm.DBForm;
import _VisualDVM.Global;
import javax.swing.*;
import java.awt.*;
@@ -73,8 +74,8 @@ public abstract class Form extends JFrame implements ThemeElement {
}
public void LoadWindowParameters() throws Exception {
if (getFormKey()!=null)
if (Utils_.db.forms.Data.containsKey(getFormKey())) {
dbInfo = Utils_.db.forms.Data.get(getFormKey());
if (Global.mainModule.getDb().forms.Data.containsKey(getFormKey())) {
dbInfo = Global.mainModule.getDb().forms.Data.get(getFormKey());
dbInfo.Apply(this);
return;
}
@@ -85,9 +86,9 @@ public abstract class Form extends JFrame implements ThemeElement {
if (getFormKey()!=null) {
if (dbInfo != null) {
dbInfo.Init(this);
Utils_.db.Update(dbInfo);
Global.mainModule.getDb().Update(dbInfo);
} else
Utils_.db.Insert(new DBForm(getFormKey(), this));
Global.mainModule.getDb().Insert(new DBForm(getFormKey(), this));
}
}
@Override