Exemplo n.º 1
0
        private void ManageToolbarEvents()
        {
            ManageOperationButton();
            if (controlBinder != null)
            {
                controlBinder.Enable(DocumentMode == DBMode.Edit);
            }

            if (DocumentMode == DBMode.Edit)
            {
                if (IsNew)
                {
                    OnDisableControlsForNew();
                }
                else
                {
                    OnDisableControlsForEdit();
                }

                if (controlBinder != null)
                {
                    controlBinder.SetFocus();
                }
            }
        }