Exemple #1
0
 protected override void InitializeControls()
 {
     base.InitializeControls();
     UpdateButtonsControlLayout();
     UpdateCancelButton();
     UpdateOkButton();
     UpdateMainControlLayout();
     UpdateRemoveRightsControlLayout();
     UpdateControlLayout1();
     UpdateAllRolesAndUsersRadioButton();
     UpdateControlLayout4();
     UpdateControlLayout9();
     UpdateEmployeesRadioButton();
     UpdateControlLayout3();
     UpdateControlLayout7();
     UpdateEmployeeParameterValueEdit();
     UpdateEmployeeRadioButton();
     UpdateControlLayout2();
     UpdateControlLayout5();
     UpdateRolesParameterValueEdit();
     UpdateRolesRadioButton();
     UpdateOperationsControlLayout();
     TopLevelControl.MoveItem(0, BaseMessagePanel);
     TopLevelControl.MoveItem(1, MainControlLayout);
     MainControlLayout.MoveItem(0, OperationsControlLayout);
     OperationsControlLayout.MoveItem(0, RightToReadCheckBox);
     OperationsControlLayout.MoveItem(1, RightToChangeCheckBox);
     OperationsControlLayout.MoveItem(2, RightToRemoveCheckBox);
     MainControlLayout.InsertItem(1, CreateOperationRightLevelControlLayout());
     OperationRightLevelControlLayout.InsertItem(0, CreateAllowRadioButton());
     OperationRightLevelControlLayout.InsertItem(1, CreateAllowAndGrantRadioButton());
     OperationRightLevelControlLayout.InsertItem(2, CreateDenyRadioButton());
     MainControlLayout.MoveItem(2, RemoveRightsControlLayout);
     RemoveRightsControlLayout.MoveItem(0, ControlLayout2);
     ControlLayout2.MoveItem(0, RolesRadioButton);
     ControlLayout2.MoveItem(1, ControlLayout5);
     ControlLayout5.MoveItem(0, RolesParameterValueEdit);
     RemoveRightsControlLayout.MoveItem(1, ControlLayout3);
     ControlLayout3.MoveItem(0, EmployeeRadioButton);
     ControlLayout3.MoveItem(1, ControlLayout7);
     ControlLayout7.MoveItem(0, EmployeeParameterValueEdit);
     RemoveRightsControlLayout.MoveItem(2, ControlLayout4);
     ControlLayout4.MoveItem(0, EmployeesRadioButton);
     ControlLayout4.MoveItem(1, ControlLayout9);
     ControlLayout9.MoveItem(0, ContactFilterEdit);
     RemoveRightsControlLayout.MoveItem(3, ControlLayout1);
     ControlLayout1.MoveItem(0, AllRolesAndUsersRadioButton);
     TopLevelControl.MoveItem(2, ButtonsControlLayout);
     ButtonsControlLayout.MoveItem(0, Spacer1);
     ButtonsControlLayout.MoveItem(1, OkButton);
     ButtonsControlLayout.MoveItem(2, CancelButton);
     TopLevelControl.MoveItem(3, EntityDataSource);
     SetControlsDefInheritance(UId);
     InitializeLocalizableValues();
 }
 protected override void InitializeControls()
 {
     base.InitializeControls();
     UpdateButtonsControlLayout();
     UpdateApplyChangesButton();
     UpdateCancelButton();
     UpdateOKButton();
     UpdateDesignerModeButton();
     UpdateContextHelpButton();
     UpdateMainControlLayout();
     UpdateCustomControls();
     UpdateLogoEdit();
     UpdateLoginParametersControlLayout();
     UpdateSMTPServerTimeoutEdit();
     UpdateControlLayout3();
     UpdateSMTPPortEdit();
     UpdateSMTPServerAddressTextEdit();
     UpdateAllowEmailSendingCheckBox();
     UpdateControlLayout1();
     UpdatePortEdit();
     UpdateAddressEdit();
     UpdateControlLayout2();
     UpdateEmailProtocolComboBoxEdit();
     UpdateAllowEmailDownloadingCheckBox();
     UpdateNameEdit();
     TopLevelControl.MoveItem(0, BaseMessagePanel);
     TopLevelControl.MoveItem(1, MainControlLayout);
     MainControlLayout.MoveItem(0, NameEdit);
     MainControlLayout.MoveItem(1, Downloading);
     MainControlLayout.MoveItem(2, ControlLayout2);
     ControlLayout2.MoveItem(0, AllowEmailDownloadingCheckBox);
     ControlLayout2.MoveItem(1, EmailProtocolComboBoxEdit);
     MainControlLayout.MoveItem(3, ControlLayout1);
     ControlLayout1.MoveItem(0, AddressEdit);
     ControlLayout1.MoveItem(1, PortEdit);
     MainControlLayout.MoveItem(4, UseSSLEdit);
     MainControlLayout.MoveItem(5, IsStartTlsEdit);
     MainControlLayout.MoveItem(6, Sending);
     MainControlLayout.MoveItem(7, AllowEmailSendingCheckBox);
     MainControlLayout.MoveItem(8, ControlLayout3);
     ControlLayout3.MoveItem(0, SMTPServerAddressTextEdit);
     ControlLayout3.MoveItem(1, SMTPPortEdit);
     MainControlLayout.MoveItem(9, SMTPServerTimeoutEdit);
     MainControlLayout.MoveItem(10, UseSSLforSendingCheckBox);
     MainControlLayout.MoveItem(11, LoginParametersControlLayout);
     LoginParametersControlLayout.MoveItem(0, UseLoginRadioButton);
     LoginParametersControlLayout.MoveItem(1, UseUserNameAsLoginRadioButton);
     LoginParametersControlLayout.MoveItem(2, UseEmailAddressAsLoginRadioButton);
     MainControlLayout.MoveItem(12, ImageAndSettingsLabel);
     MainControlLayout.MoveItem(13, LogoEdit);
     MainControlLayout.MoveItem(14, 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();
 }