no message
This commit is contained in:
@@ -35,8 +35,8 @@ public class MainForm extends Form implements MainWindow {
|
||||
return Content;
|
||||
}
|
||||
@Override
|
||||
protected FormType getFormType() {
|
||||
return FormType.Main;
|
||||
protected String getFormType() {
|
||||
return FormType.Main.toString();
|
||||
}
|
||||
@Override
|
||||
public String getIconName() {
|
||||
|
||||
@@ -4,6 +4,7 @@ import Common_old.UI.Windows.Dialog.Dialog;
|
||||
import Common_old.UI.Windows.FormType;
|
||||
import GlobalData.FormsParams.DBForm;
|
||||
import GlobalData.GlobalDatabase;
|
||||
//todo разобраться с DBform
|
||||
public class ProfilesForm extends Dialog<Object, ProfilesFields> {
|
||||
private DBForm info = null;
|
||||
public ProfilesForm() {
|
||||
@@ -55,8 +56,8 @@ public class ProfilesForm extends Dialog<Object, ProfilesFields> {
|
||||
}
|
||||
}
|
||||
public void LoadWindowParameters() throws Exception {
|
||||
if (((GlobalDatabase)CommonUtils.db).forms.Data.containsKey(FormType.Profiles)) {
|
||||
info = ((GlobalDatabase)CommonUtils.db).forms.Data.get(FormType.Profiles);
|
||||
if (((GlobalDatabase)CommonUtils.db).forms.Data.containsKey(FormType.Profiles.toString())) {
|
||||
info = ((GlobalDatabase)CommonUtils.db).forms.Data.get(FormType.Profiles.toString());
|
||||
info.Apply(this);
|
||||
return;
|
||||
}
|
||||
@@ -67,6 +68,6 @@ public class ProfilesForm extends Dialog<Object, ProfilesFields> {
|
||||
info.Init(this);
|
||||
CommonUtils.db.Update(info);
|
||||
} else
|
||||
CommonUtils.db.Insert(new DBForm(FormType.Profiles, this));
|
||||
CommonUtils.db.Insert(new DBForm(FormType.Profiles.toString(), this));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package Visual_DVM_2021.UI.Main;
|
||||
import Common_old.UI.DragDrop.FileDrop;
|
||||
import Common.Visual.DragDrop.FileDrop;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user