/// <summary>
        /// Sets up the screen logic, retrieves data, databinds the Grid and the Detail
        /// UserControl.
        /// </summary>
        /// <returns>void</returns>
        public void InitialiseUserControl()
        {
            FApplicationDS = new ApplicationTDS();
            FApplicationDS.InitVars();

            // the following lines are just dummy code to remove compiler warnings as those members are never used
            if (FTabSetup == null)
            {
                FTabSetup = null;
            }

            if (FTabPageEvent == null)
            {
                FTabPageEvent = null;
            }

            ucoField.PetraUtilsObject     = FPetraUtilsObject;
            ucoApplicant.PetraUtilsObject = FPetraUtilsObject;

            ucoField.MainDS     = FApplicationDS;
            ucoApplicant.MainDS = FApplicationDS;

            // enable control to react to modified event or field key in details part
            ucoField.ApplicationFieldChanged += new TDelegatePartnerChanged(ProcessApplicationFieldChanged);

            // handle tab changing in case validation fails
            tabApplicationField.Selecting += new TabControlCancelEventHandler(TabSelectionChanging);
        }
示例#2
0
        /// <summary>
        /// Sets up the screen logic, retrieves data, databinds the Grid and the Detail
        /// UserControl.
        /// </summary>
        /// <returns>void</returns>
        public void InitialiseUserControl()
        {
            FApplicationDS = new ApplicationTDS();
            FApplicationDS.InitVars();

            // the following lines are just dummy code to remove compiler warnings as those members are never used
            if (FTabSetup == null)
            {
                FTabSetup = null;
            }

            if (FTabPageEvent == null)
            {
                FTabPageEvent = null;
            }

            ucoEvent.PetraUtilsObject     = FPetraUtilsObject;
            ucoApplicant.PetraUtilsObject = FPetraUtilsObject;
            ucoTravel.PetraUtilsObject    = FPetraUtilsObject;

            ucoEvent.MainDS     = FApplicationDS;
            ucoApplicant.MainDS = FApplicationDS;
            ucoTravel.MainDS    = FApplicationDS;

            // enable control to react to modified event or field key in details part
            ucoEvent.ApplicationEventChanged += new TDelegatePartnerChanged(ProcessApplicationEventChanged);

            // handle tab changing in case validation fails
            tabApplicationEvent.Selecting += new TabControlCancelEventHandler(TabSelectionChanging);

            // initialize delegate method on event page so it can be called from there for validation purposes
            ucoEvent.InitialiseDelegateCheckEventApplicationDuplicate(CheckEventApplicationDuplicate);
        }
        /// <summary>
        /// Sets up the screen logic, retrieves data, databinds the Grid and the Detail
        /// UserControl.
        /// </summary>
        /// <returns>void</returns>
        public void InitialiseUserControl()
        {
            FApplicationDS = new ApplicationTDS();
            FApplicationDS.InitVars();

            // the following lines are just dummy code to remove compiler warnings as those members are never used
            if (FTabSetup == null)
            {
                FTabSetup = null;
            }

            if (FTabPageEvent == null)
            {
                FTabPageEvent = null;
            }

            ucoEvent.PetraUtilsObject = FPetraUtilsObject;
            ucoApplicant.PetraUtilsObject = FPetraUtilsObject;
            ucoTravel.PetraUtilsObject = FPetraUtilsObject;

            ucoEvent.MainDS = FApplicationDS;
            ucoApplicant.MainDS = FApplicationDS;
            ucoTravel.MainDS = FApplicationDS;

            // enable control to react to modified event or field key in details part
            ucoEvent.ApplicationEventChanged += new TDelegatePartnerChanged(ProcessApplicationEventChanged);

            // handle tab changing in case validation fails
            tabApplicationEvent.Selecting += new TabControlCancelEventHandler(TabSelectionChanging);

            // initialize delegate method on event page so it can be called from there for validation purposes
            ucoEvent.InitialiseDelegateCheckEventApplicationDuplicate(CheckEventApplicationDuplicate);
        }
        /// <summary>
        /// Sets up the screen logic, retrieves data, databinds the Grid and the Detail
        /// UserControl.
        /// </summary>
        /// <returns>void</returns>
        public void InitialiseUserControl()
        {
            FApplicationDS = new ApplicationTDS();
            FApplicationDS.InitVars();

            // the following lines are just dummy code to remove compiler warnings as those members are never used
            if (FTabSetup == null)
            {
                FTabSetup = null;
            }

            if (FTabPageEvent == null)
            {
                FTabPageEvent = null;
            }

            ucoField.PetraUtilsObject = FPetraUtilsObject;
            ucoApplicant.PetraUtilsObject = FPetraUtilsObject;

            ucoField.MainDS = FApplicationDS;
            ucoApplicant.MainDS = FApplicationDS;

            // enable control to react to modified event or field key in details part
            ucoField.ApplicationFieldChanged += new TDelegatePartnerChanged(ProcessApplicationFieldChanged);

            // handle tab changing in case validation fails
            tabApplicationField.Selecting += new TabControlCancelEventHandler(TabSelectionChanging);
        }