no message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user