Beispiel #1
0
        private void OnSelectionChanged()
        {
            AdvisementEditorItem page = (AdvisementEditorItem)getEditor().getActivePage();

            if (isPrefunding())
            {
                //getAdvisementService().getAlready();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Initialisation des Handlers sur une nouvelle page.
        /// </summary>
        protected override void initializePageHandlers(EditorItem <Advisement> item)
        {
            AdvisementEditorItem page = (AdvisementEditorItem)item;

            base.initializePageHandlers(page);
            page.getAdvisementForm().SelectionChanged += OnSelectionChanged;
            page.getAdvisementForm().OkButton.Click += OnOkClick;
            page.getAdvisementForm().CancelButton.Click += OnCancelClick;
        }
Beispiel #3
0
        public override Kernel.Application.OperationState Create()
        {
            Advisement advisement = new Advisement();

            advisement.advisementType = getNewPageName(AdvisementType.ToString());
            advisement.creator        = ApplicationManager.User.login;
            advisement.valueDateTime  = DateTime.Now;
            try
            {
                AdvisementEditorItem page = (AdvisementEditorItem)getAdvisementEditor().addOrSelectPage(advisement);
                initializePageHandlers(page);
                page.Title = advisement.ToString();
                getAdvisementEditor().ListChangeHandler.AddNew(advisement);
            }
            catch (Exception) { }
            return(OperationState.CONTINUE);
        }
Beispiel #4
0
        private void OnOkClick(object sender, System.Windows.RoutedEventArgs e)
        {
            AdvisementEditorItem page = (AdvisementEditorItem)getEditor().getActivePage();

            Save(page);
        }