Exemplo n.º 1
0
        /**************************************************************************************************/
        private void InitSelectedRelative()
        {
            flowLayoutPanel1.Controls.Clear();

            selectedRelative = SessionManager.Instance.GetSelectedRelative();

            if (selectedRelative != null)
            {
                this.newTestButton.Enabled = true;
                selectedRelative.AddHandlersWithLoad(selectedRelativeChanged, selectedRelativeLoaded, null);
            }
            else
            {
                this.newTestButton.Enabled = false;
                relativeHeader1.setRelative(null);
            }
        }
Exemplo n.º 2
0
        /**************************************************************************************************/
        private void InitSelectedRelative()
        {
            //  get selected relative object from session manager
            if (selectedRelative != null)
                selectedRelative.ReleaseListeners(this);

            selectedRelative = SessionManager.Instance.GetSelectedRelative();

            ClearUI();

            if (selectedRelative != null)
            {
                selectedRelative.AddHandlersWithLoad(selectedRelativeChanged, selectedrelativeLoaded, null);

                selectedRelative.Ethnicity.AddHandlersWithLoad(EthnicityListChanged,
                                                               EthnicityListLoaded,
                                                               null);

                selectedRelative.Nationality.AddHandlersWithLoad(NationalityChanged,
                                                                 NationalityLoaded,
                                                                 null);
            }
            else
            {
                this.Enabled = false;
            }
        }
Exemplo n.º 3
0
        /**************************************************************************************************/
        private void InitSelectedRelative()
        {
            //  get selected relative object from session manager
            selectedRelative = SessionManager.Instance.GetSelectedRelative();

            if (selectedRelative != null)
            {
                selectedRelative.AddHandlersWithLoad(activeRelativeChanged, activeRelativeLoaded, null);
                FillControls();
            }
        }