protected override void InitializeControls()
 {
     base.InitializeControls();
     UpdateButtonsControlLayout();
     UpdateApplyChangesButton();
     UpdateCancelButton();
     UpdateOKButton();
     UpdateDesignerModeButton();
     UpdateContextHelpButton();
     UpdateMainControlLayout();
     UpdateCustomControls();
     TopLevelControl.MoveItem(0, BaseMessagePanel);
     TopLevelControl.MoveItem(1, MainControlLayout);
     MainControlLayout.InsertItem(0, CreateMetaPathEdit());
     MainControlLayout.InsertItem(1, CreateCaptionEdit());
     MainControlLayout.InsertItem(2, CreateControlLayout1());
     ControlLayout1.InsertItem(0, CreateWidthEdit());
     ControlLayout1.InsertItem(1, CreateSpacer1());
     ControlLayout1.InsertItem(2, CreateOrderComboBoxEdit());
     MainControlLayout.MoveItem(3, CustomControls);
     TopLevelControl.MoveItem(2, ButtonsControlLayout);
     ButtonsControlLayout.MoveItem(0, ContextHelpButton);
     ButtonsControlLayout.MoveItem(1, DesignerModeButton);
     ButtonsControlLayout.MoveItem(2, SpacerButton);
     ButtonsControlLayout.MoveItem(3, OKButton);
     ButtonsControlLayout.MoveItem(4, CancelButton);
     ButtonsControlLayout.MoveItem(5, ApplyChangesButton);
     TopLevelControl.MoveItem(3, DataSource);
     SetControlsDefInheritance(UId);
     InitializeLocalizableValues();
 }
 protected override void InitializeControls()
 {
     base.InitializeControls();
     UpdateButtonsControlLayout();
     UpdateApplyChangesButton();
     UpdateCancelButton();
     UpdateOKButton();
     UpdateDesignerModeButton();
     UpdateContextHelpButton();
     UpdateMainControlLayout();
     UpdateCustomControls();
     UpdateDescriptionEdit();
     UpdateNameEdit();
     TopLevelControl.MoveItem(0, BaseMessagePanel);
     TopLevelControl.MoveItem(1, MainControlLayout);
     MainControlLayout.MoveItem(0, NameEdit);
     MainControlLayout.MoveItem(1, DescriptionEdit);
     MainControlLayout.InsertItem(2, CreateReverseRelationTypeEdit());
     MainControlLayout.InsertItem(3, CreateControlLayout());
     ControlLayout.InsertItem(0, CreateControlLayout1());
     ControlLayout1.InsertItem(0, CreateForContactContactEdit());
     ControlLayout1.InsertItem(1, CreateForAccountContactEdit());
     ControlLayout.InsertItem(1, CreateControlLayout2());
     ControlLayout2.InsertItem(0, CreateForContactAccountEdit());
     ControlLayout2.InsertItem(1, CreateForAccountAccountEdit());
     MainControlLayout.MoveItem(4, CustomControls);
     TopLevelControl.MoveItem(2, ButtonsControlLayout);
     ButtonsControlLayout.MoveItem(0, ContextHelpButton);
     ButtonsControlLayout.MoveItem(1, DesignerModeButton);
     ButtonsControlLayout.MoveItem(2, SpacerButton);
     ButtonsControlLayout.MoveItem(3, OKButton);
     ButtonsControlLayout.MoveItem(4, CancelButton);
     ButtonsControlLayout.MoveItem(5, ApplyChangesButton);
     TopLevelControl.MoveItem(3, DataSource);
     SetControlsDefInheritance(UId);
     InitializeLocalizableValues();
 }