Exemplo n.º 1
0
 /// <summary>
 /// Constructor to initialize save type and the user data object to edit
 /// </summary>
 public AddUser(SaveType eSaveType, ObjectUser.UserInstance objUser)
 {
     this.Visible = false;
     InitializeComponent();
     m_objUser = objUser;
     m_eSaveType = eSaveType;
     this.Visible = true;
     this.layoutControlItemSIP.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor to initialize save type and the user data object to edit
        /// </summary>
        public AddUser(SaveType eSaveType, ObjectUser.UserInstance objUser, bool EditCredentialsOnly)
        {
            this.Visible = false;
            InitializeComponent();
            m_objUser = objUser;
            m_eSaveType = eSaveType;

            if (EditCredentialsOnly)
            {
                txtFullname.Enabled = false;
                txtTitle.Enabled = false;
                cboManager.Enabled = false;
                txtSite.Enabled = false;
                txtPhone.Enabled = false;
                txtMobile.Enabled = false;
                txtEmail.Enabled = false;
                chkActive.Enabled = false;
            }

            this.Visible = true;
        }