public TypeSearchViewModel(ISystemUserServiceAgent serviceAgent) { this._serviceAgent = serviceAgent; SearchObject = new SystemUserType(); ResultList = new BindingList <SystemUserType>(); SelectedList = new BindingList <SystemUserType>(); //make sure of session authentication... if (XERP.Client.ClientSessionSingleton.Instance.SessionIsAuthentic)//make sure user has rights to UI... { DoFormsAuthentication(); } else {//User is not authenticated... RegisterToReceiveMessages <bool>(MessageTokens.StartUpLogInToken.ToString(), OnStartUpLogIn); FormIsEnabled = false; } }
public TypeMaintenanceViewModel(ISystemUserServiceAgent serviceAgent) { this._serviceAgent = serviceAgent; SetAsEmptySelection(); SystemUserTypeList = new BindingList <SystemUserType>(); //disable new row feature... SystemUserTypeList.AllowNew = false; //make sure of session authentication... if (XERP.Client.ClientSessionSingleton.Instance.SessionIsAuthentic)//make sure user has rights to UI... { DoFormsAuthentication(); } else {//User is not authenticated... RegisterToReceiveMessages <bool>(MessageTokens.StartUpLogInToken.ToString(), OnStartUpLogIn); FormIsEnabled = false; } AllowNew = true; AllowRowPaste = true; }