Represents the main form of Data Model Editor
public class Korzh.EasyQuery.WinForms.ModelEditor.ModelEditorForm
: Form
Package: Korzh.EasyQuery.WinForms.ModelEditor
(targets: net461
, net5.0-windows7.0
, netcoreapp3.1
)
Assembly: Korzh.EasyQuery.WinForms.ModelEditor.dll
Constructors
Name | Type | Description |
---|---|---|
ModelEditorForm() | void |
Initializes a new instance of the ModelEditorForm class. |
Properties
Name | Type | Description |
---|---|---|
DatabaseGate | DbGate | Gets the database gate. |
IsRendering | bool |
Gets a value indicating whether the dialog is in rendering mode. |
MainAssembly | Assembly |
|
MainPanel | Control |
Gets the main panel of ModelEditor form. |
Model | DbModel | Gets the model. |
ModelChanged | bool |
Gets or sets a value indicating whether the model have been changed. |
ModelDbParameters | Dictionary <string , DbParameters> |
|
RunNewModelWizardOnStart | bool |
Gets or sets a value indicating whether we should run new model wizard on start. |
WorkFolder | string |
Gets or sets the working folder. |
Methods
Name | Type | Description |
---|---|---|
AddDataAttr() | void |
Adds new data attribute into entity tree |
AddEntity(TreeNode parentNode) |
void |
Adds new entity object into entity tree |
AddEntityNode(Entity entity, TreeNodeCollection parentNodes) |
void |
Adds the node associated with some Korzh.EasyQuery.DataModel.Entity object. |
AddLinkByLinkInfo(DbLinkInfo linkInfo) | void |
Adds the link by Korzh.EasyQuery.Db.DbLinkInfo object. |
AddVirtualAttr() | void |
Adds new virtual attribute into entity tree |
ApplyLoginRequestHandler(LoginRequestEventHandler handler) |
void |
|
AutoAddLinks() | void |
Automatically adds the links by information from database. |
AutoGenerateLinks() | void |
Automatically generates the links. |
ChangeValueEditorType(ValueEditor currentEditor, ValueEditor newEditor) | bool |
Changes the type of the value editor. |
CheckConnectionString() | bool |
|
CheckIfModelSaved() | bool |
Checks whether all changes in model were saved or not. If not - brings up a message box to confirm saving. |
CoreRenderModel() | void |
Renders the model (protected virtual method) |
DeleteSelectedEntityObj() | void |
Deletes the selected entity object |
Dispose(bool disposing) |
void |
Clean up any resources being used. |
EndRendering() | void |
Closes the rendering operation. Each StartRendering call must be closed by EndRendering. |
GetSelectedAttr() | DbEntityAttr | Gets the selected attribute. |
LaunchAddTablesDlg() | bool |
Launches Add Tables dialog |
LoadConfig(ConfigSettings config) | void |
|
LoadModelFromFile(string modelFilePath) |
void |
Loads model from file. |
LoadModelFromString(string modelXml) |
void |
Loads model from XML string. |
ModelPostLoading() | void |
Performs some tuning after model loading. |
ModelPreLoading() | bool |
Performs some tuning after model loading. |
MountDbGate() | void |
Mounts the db gate. |
NewModelWizard() | void |
Starts the process of new model creation. |
RenderEntity(Entity entity) | void |
Renders dialog controls associated with some Korzh.EasyQuery.DataModel.Entity object |
RenderEntityAttr(DbEntityAttr attr) | void |
Renders dialog controls associated with some Korzh.EasyQuery.DbEntityAttr object |
RenderEntityNode(TreeNode node) |
void |
Renders the tree node associated with some Korzh.EasyQuery.DataModel.Entity object |
RenderModel() | void |
Renders the model. |
RenderOperand(Operand opnd) | void |
Renders the operand. |
RenderOperands(Operator op) | void |
Renders the operands for specified operator |
RenderOperatorProps(Operator op) | void |
Renders dialog controls associated with the properties of some operator |
RenderSelectedOperator() | void |
Renders dialog controls associated with the properties of currently selected operator |
RenderSelectedTable() | void |
Renders dialog controls associated with the properties of currently selected table |
RenderTableProps(Table table) | void |
Renders dialog controls associated with the properties of some table |
SaveConfig(ConfigSettings config) | void |
|
SaveCurrentEntityObj() | void |
Saves the state of entity or entity attribute (depeding on what selected currently) |
SaveCurrentOperand() | void |
Saves the current operand. |
SaveEntity(Entity entity) | void |
Save the current state of dialog controls into associated Korzh.EasyQuery.DataModel.Entity object |
SaveEntityAttr(DbEntityAttr attr) | void |
f Save the current state of dialog controls into associated Korzh.EasyQuery.DbEntityAttr object |
SaveModelAs() | void |
Shows the "Save File" dialog and saves the model to chosen file. |
SaveModelChanges() | void |
Saves all latest model changes made by UI. |
SaveModelToFile(string modelFilePath, ModelFormatIndex formatIndex) |
void |
Saves the model. |
SaveOperatorProps(Operator op) | void |
Save the current state of dialog controls into associated Korzh.EasyQuery.DataModel.Operator object |
SaveTableProps(Table table) | void |
Save the current state of dialog controls into associated Korzh.EasyQuery.Table object |
ShowEQBConnection(DbModel model, DbGate gate) | bool |
Shows the EQB connection. |
ShowValueEditorPropsDlg(ValueEditor valueEditor) | bool |
Shows the dialog which allow to edit value editor properties. |
StartRendering() | void |
Sets internal "IsRendering" attribute Call this method to avoid useless operations while the properties of some model object (e.g. an operator) are rendered |