public MainMaintenanceViewModel(ISecurityGroupServiceAgent serviceAgent) { this._serviceAgent = serviceAgent; BuildDropDowns(); SetAsEmptySelection(); SecurityGroupList = new BindingList <SecurityGroup>(); //disable new row feature... SecurityGroupList.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; }
public TypeSearchViewModel(ISecurityGroupServiceAgent serviceAgent) { this._serviceAgent = serviceAgent; SearchObject = new SecurityGroupType(); ResultList = new BindingList <SecurityGroupType>(); SelectedList = new BindingList <SecurityGroupType>(); //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; } }