no message
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
package _VisualDVM.Visual.Windows;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Utils.Utils_;
|
||||
import Common.Visual.Windows.Dialog.Dialog;
|
||||
import Common.Database.Objects.DBForm.DBForm;
|
||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||
@@ -18,13 +18,13 @@ public class ProfilesForm extends Dialog<Object, ProfilesFields> {
|
||||
}
|
||||
@Override
|
||||
public void Init(Object... params) {
|
||||
if (((GlobalDatabase)CommonUtils.db).sapforProfiles.size() > 0) {
|
||||
for (Object key : ((GlobalDatabase)CommonUtils.db).sapforProfiles.Data.keySet()) {
|
||||
((GlobalDatabase)CommonUtils.db).sapforProfiles.ShowUI(key);
|
||||
if (((GlobalDatabase) Utils_.db).sapforProfiles.size() > 0) {
|
||||
for (Object key : ((GlobalDatabase) Utils_.db).sapforProfiles.Data.keySet()) {
|
||||
((GlobalDatabase) Utils_.db).sapforProfiles.ShowUI(key);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
((GlobalDatabase)CommonUtils.db).sapforProfiles.ShowUI();
|
||||
((GlobalDatabase) Utils_.db).sapforProfiles.ShowUI();
|
||||
}
|
||||
}
|
||||
@Override
|
||||
@@ -58,8 +58,8 @@ public class ProfilesForm extends Dialog<Object, ProfilesFields> {
|
||||
return "Profiles"; //можно было бы через имя класса
|
||||
}
|
||||
public void LoadWindowParameters() throws Exception {
|
||||
if (((GlobalDatabase)CommonUtils.db).forms.Data.containsKey(getFormKey())) {
|
||||
info = ((GlobalDatabase)CommonUtils.db).forms.Data.get(getFormKey());
|
||||
if (((GlobalDatabase) Utils_.db).forms.Data.containsKey(getFormKey())) {
|
||||
info = ((GlobalDatabase) Utils_.db).forms.Data.get(getFormKey());
|
||||
info.Apply(this);
|
||||
return;
|
||||
}
|
||||
@@ -68,8 +68,8 @@ public class ProfilesForm extends Dialog<Object, ProfilesFields> {
|
||||
public void SaveWindowParameters() throws Exception {
|
||||
if (info != null) {
|
||||
info.Init(this);
|
||||
CommonUtils.db.Update(info);
|
||||
Utils_.db.Update(info);
|
||||
} else
|
||||
CommonUtils.db.Insert(new DBForm(getFormKey(), this));
|
||||
Utils_.db.Insert(new DBForm(getFormKey(), this));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user