Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="oid"></param>
        /// <returns></returns>
        public override OperationState Open(Domain.User user)
        {
            UserProfileEditorItem page = (UserProfileEditorItem)getEditor().addOrSelectPage(user);

            initializePageHandlers(page);
            page.getUserProfileForm().displayObject();
            getEditor().ListChangeHandler.AddNew(user);
            //page.getUserForm().userMainPanel.InitProfilComboBox(GetUserService().ProfilService);
            //page.getUserForm().userMainPanel.InitRelationPanel(GetUserService());
            return(OperationState.CONTINUE);
        }
Beispiel #2
0
        /// <summary>
        /// Initialisation des Handlers sur une nouvelle page.
        /// En plus des handlers de base, on initialise les handlers sur :
        /// - DesignerPropertiesPanel
        /// -
        /// - SpreadSheet
        /// -
        /// </summary>
        protected override void initializePageHandlers(EditorItem <Domain.User> page)
        {
            base.initializePageHandlers(page);
            UserProfileEditorItem editorPage = (UserProfileEditorItem)page;

            editorPage.getUserProfileForm().ConnectedUserProfile.Changed += OnChangeItem;
            //editorPage.getUserForm().userMainPanel.nameTextBox.KeyUp += onNameTextChange;
            //editorPage.getUserForm().userMainPanel.nameTextBox.LostFocus += onNameTextLostFocus;
            //editorPage.getUserForm().userMainPanel.loginTextBox.KeyUp += onLoginTextChange;
            //editorPage.getUserForm().userMainPanel.loginTextBox.LostFocus += onLoginTextLostFocus;
            //editorPage.getUserForm().userMainPanel.RelationPanel.Changed += OnRelationChange;
            //editorPage.getUserForm().userMainPanel.profilcomboBox.SelectionChanged += onProfilFieldChange;
            //editorPage.getUserForm().userMainPanel.RelationPanel.ItemChanged += OnRelationItemChange;
            //editorPage.getUserForm().userMainPanel.RelationPanel.ItemDeleted += OnRelationItemDelete;
            //editorPage.getUserForm().userMainPanel.nameTextBox.LostFocus += onUserNameTextLostFocus;
            //editorPage.getUserForm().userMainPanel.nameTextBox.KeyUp += onUserNameTextChange;
        }