Beispiel #1
0
        /// <summary>
        /// Add the current editor to the grid panel.
        /// </summary>
        /// <param name="p_GridPanel">The grid panel.</param>
        public virtual void AttachEditorControl(GridSubPanel p_GridPanel)
        {
            if (IsAttached(p_GridPanel) == false)
            {
                p_GridPanel.SuspendLayout();

                try
                {
                    Control l_EditorControl = CreateEditorControl();
                    l_EditorControl.Visible = false;
                    p_GridPanel.ControlsRepository.Add(GetEditorControlGuid(), l_EditorControl);
                    l_EditorControl.CreateControl();

                    l_EditorControl.Validated += new EventHandler(InnerControl_Validated);
                }
                finally
                {
                    p_GridPanel.ResumeLayout(true);
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// Add the current editor to the grid panel.
        /// </summary>
        /// <param name="p_GridPanel"></param>
        public virtual void AttachEditorControl(GridSubPanel p_GridPanel)
        {
            if (IsAttached(p_GridPanel) == false)
            {
                p_GridPanel.SuspendLayout();

                try
                {
                    Control l_EditorControl = CreateEditorControl();
                    l_EditorControl.Visible = false;
                    p_GridPanel.ControlsRepository.Add(GetEditorControlGuid(), l_EditorControl);
                    l_EditorControl.CreateControl();

                    //m_Control.KeyDown += new KeyEventHandler(InnerControl_KeyDown);
                    //l_EditorControl.Validating += new System.ComponentModel.CancelEventHandler(InnerControl_Validating);
                    l_EditorControl.Validated += new EventHandler(InnerControl_Validated);
                }
                finally
                {
                    p_GridPanel.ResumeLayout(true);
                }
            }
        }
        /// <summary>
        /// Add the current editor to the grid panel.
        /// </summary>
        /// <param name="p_GridPanel">The grid panel.</param>
        public virtual void AttachEditorControl(GridSubPanel p_GridPanel)
        {
            if (IsAttached(p_GridPanel) == false)
              {
            p_GridPanel.SuspendLayout();

            try
            {
              Control l_EditorControl = CreateEditorControl();
              l_EditorControl.Visible = false;
              p_GridPanel.ControlsRepository.Add(GetEditorControlGuid(), l_EditorControl);
              l_EditorControl.CreateControl();

              l_EditorControl.Validated += new EventHandler(InnerControl_Validated);
            }
            finally
            {
              p_GridPanel.ResumeLayout(true);
            }
              }
        }