Ejemplo n.º 1
0
 private void InitObjects()
 {
     m_objUser = null;
     m_objUserRole = null;
     m_objUserCustomer = null;
 }
Ejemplo n.º 2
0
        private void SetFocusedViewInstance()
        {
            this.InitObjects();
            m_objUser = gridViewUsers.GetFocusedRow() as ObjectUser.UserInstance;

            if (gridViewRoles.DataRowCount > 0)
                m_objUserRole = gridViewRoles.GetFocusedRow() as ObjectUser.UserRoleInstance;

            if (gridViewCustomers.DataRowCount > 0)
                m_objUserCustomer = gridViewCustomers.GetFocusedRow() as ObjectUser.UserCustomerInstance;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Sets the focused view instance of the grid. Instantiates the objects that can be used for data manipulation.
        /// Where m_objUser, is the current selected object in the grid view
        /// </summary>
        private void SetFocusedViewInstance()
        {
            this.InitObjects();

            m_objGridView = (DevExpress.XtraGrid.Views.Grid.GridView)DXGridUser.FocusedView;
            m_objUser = (ObjectUser.UserInstance)m_objGridView.GetFocusedRow();

            if (gridViewRoles.DataRowCount > 0)
            {
                m_objGridView = (DevExpress.XtraGrid.Views.Grid.GridView)DXGridRole.FocusedView;
                m_objUserRole = (ObjectUser.UserRoleInstance)m_objGridView.GetFocusedRow();
            }
        }