public MainMaintenanceViewModel(IDBStoredImageServiceAgent serviceAgent) { this._serviceAgent = serviceAgent; BuildDropDowns(); SetAsEmptySelection(); DBStoredImageList = new BindingList <DBStoredImage>(); //disable new row feature... DBStoredImageList.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 MainSearchViewModel(IDBStoredImageServiceAgent serviceAgent) { this._serviceAgent = serviceAgent; SearchObject = new DBStoredImage(); ResultList = new BindingList <DBStoredImage>(); SelectedList = new BindingList <DBStoredImage>(); //make sure of session authentication... if (ClientSessionSingleton.Instance.SessionIsAuthentic) //make sure user has rights to UI... { DoFormsAuthentication(); } else {//User is not authenticated... RegisterToReceiveMessages <bool>(MessageTokens.StartUpLogInToken.ToString(), OnStartUpLogIn); FormIsEnabled = false; } }