public string[] SearchStaffBehaveDataBaseCount(SearchStaffBehave SearchStaffUpgrade2) { StaffDataBase sDB = new StaffDataBase(); sDB.personnelFunction(); if (int.Parse(sDB._StaffhaveRoles[3]) == 1) { return sDB.SearchStaffBehaveDataBaseCount(SearchStaffUpgrade2); } else { return new string[2] { _noRole, _errorMsg }; } }